home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 April: Mac OS SDK / Dev.CD Apr 99 SDK1.toast / Development Kits / Interfaces&Libraries / Universal / Interfaces / CIncludes / QuickTimeComponents.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-17  |  139.3 KB  |  3,637 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        QuickTimeComponents.h
  3.  
  4.      Contains:    QuickTime Interfaces.
  5.  
  6.      Version:    Technology:    QuickTime 3.0
  7.                  Release:    Universal Interfaces 3.2
  8.  
  9.      Copyright:    © 1990-1998 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17. #ifndef __QUICKTIMECOMPONENTS__
  18. #define __QUICKTIMECOMPONENTS__
  19.  
  20. #ifndef __MACTYPES__
  21. #include <MacTypes.h>
  22. #endif
  23. #ifndef __MIXEDMODE__
  24. #include <MixedMode.h>
  25. #endif
  26. #ifndef __COMPONENTS__
  27. #include <Components.h>
  28. #endif
  29. #ifndef __IMAGECOMPRESSION__
  30. #include <ImageCompression.h>
  31. #endif
  32. #ifndef __MOVIES__
  33. #include <Movies.h>
  34. #endif
  35. #ifndef __QUICKDRAW__
  36. #include <Quickdraw.h>
  37. #endif
  38. #ifndef __VIDEO__
  39. #include <Video.h>
  40. #endif
  41. #ifndef __SOUND__
  42. #include <Sound.h>
  43. #endif
  44. #ifndef __QUICKTIMEMUSIC__
  45. #include <QuickTimeMusic.h>
  46. #endif
  47.  
  48.  
  49.  
  50. #if PRAGMA_ONCE
  51. #pragma once
  52. #endif
  53.  
  54. #ifdef __cplusplus
  55. extern "C" {
  56. #endif
  57.  
  58. #if PRAGMA_IMPORT
  59. #pragma import on
  60. #endif
  61.  
  62. #if PRAGMA_STRUCT_ALIGN
  63.     #pragma options align=mac68k
  64. #elif PRAGMA_STRUCT_PACKPUSH
  65.     #pragma pack(push, 2)
  66. #elif PRAGMA_STRUCT_PACK
  67.     #pragma pack(2)
  68. #endif
  69.  
  70.  
  71. enum {
  72.     clockComponentType            = FOUR_CHAR_CODE('clok'),
  73.     systemTickClock                = FOUR_CHAR_CODE('tick'),        /* subtype: 60ths since boot        */
  74.     systemSecondClock            = FOUR_CHAR_CODE('seco'),        /* subtype: seconds since 1904        */
  75.     systemMillisecondClock        = FOUR_CHAR_CODE('mill'),        /* subtype: 1000ths since boot        */
  76.     systemMicrosecondClock        = FOUR_CHAR_CODE('micr')        /* subtype: 1000000ths since boot    */
  77. };
  78.  
  79.  
  80. enum {
  81.     kClockRateIsLinear            = 1,
  82.     kClockImplementsCallBacks    = 2,
  83.     kClockCanHandleIntermittentSound = 4                        /* sound clocks only */
  84. };
  85.  
  86. #if OLDROUTINENAMES
  87. #define GetClockTime(aClock, out) ClockGetTime(aClock, out)
  88. #endif
  89. EXTERN_API( ComponentResult )
  90. ClockGetTime                    (ComponentInstance         aClock,
  91.                                  TimeRecord *            out)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0001, 0x7000, 0xA82A);
  92.  
  93.  
  94. EXTERN_API( QTCallBack )
  95. ClockNewCallBack                (ComponentInstance         aClock,
  96.                                  TimeBase                 tb,
  97.                                  short                     callBackType)                        FIVEWORDINLINE(0x2F3C, 0x0006, 0x0002, 0x7000, 0xA82A);
  98.  
  99. EXTERN_API( ComponentResult )
  100. ClockDisposeCallBack            (ComponentInstance         aClock,
  101.                                  QTCallBack             cb)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0003, 0x7000, 0xA82A);
  102.  
  103. EXTERN_API( ComponentResult )
  104. ClockCallMeWhen                    (ComponentInstance         aClock,
  105.                                  QTCallBack             cb,
  106.                                  long                     param1,
  107.                                  long                     param2,
  108.                                  long                     param3)                                FIVEWORDINLINE(0x2F3C, 0x0010, 0x0004, 0x7000, 0xA82A);
  109.  
  110. EXTERN_API( ComponentResult )
  111. ClockCancelCallBack                (ComponentInstance         aClock,
  112.                                  QTCallBack             cb)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0005, 0x7000, 0xA82A);
  113.  
  114. EXTERN_API( ComponentResult )
  115. ClockRateChanged                (ComponentInstance         aClock,
  116.                                  QTCallBack             cb)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0006, 0x7000, 0xA82A);
  117.  
  118. EXTERN_API( ComponentResult )
  119. ClockTimeChanged                (ComponentInstance         aClock,
  120.                                  QTCallBack             cb)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0007, 0x7000, 0xA82A);
  121.  
  122. EXTERN_API( ComponentResult )
  123. ClockSetTimeBase                (ComponentInstance         aClock,
  124.                                  TimeBase                 tb)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0008, 0x7000, 0xA82A);
  125.  
  126. EXTERN_API( ComponentResult )
  127. ClockStartStopChanged            (ComponentInstance         aClock,
  128.                                  QTCallBack             cb,
  129.                                  Boolean                 startChanged,
  130.                                  Boolean                 stopChanged)                        FIVEWORDINLINE(0x2F3C, 0x0008, 0x0009, 0x7000, 0xA82A);
  131.  
  132. EXTERN_API( ComponentResult )
  133. ClockGetRate                    (ComponentInstance         aClock,
  134.                                  Fixed *                rate)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x000A, 0x7000, 0xA82A);
  135.  
  136.  
  137.  
  138.  
  139.  
  140. enum {
  141.     StandardCompressionType        = FOUR_CHAR_CODE('scdi'),
  142.     StandardCompressionSubType    = FOUR_CHAR_CODE('imag'),
  143.     StandardCompressionSubTypeSound = FOUR_CHAR_CODE('soun')
  144. };
  145.  
  146.  
  147. typedef CALLBACK_API( Boolean , SCModalFilterProcPtr )(DialogPtr theDialog, EventRecord *theEvent, short *itemHit, long refcon);
  148. typedef CALLBACK_API( short , SCModalHookProcPtr )(DialogPtr theDialog, short itemHit, void *params, long refcon);
  149. typedef STACK_UPP_TYPE(SCModalFilterProcPtr)                     SCModalFilterUPP;
  150. typedef STACK_UPP_TYPE(SCModalHookProcPtr)                         SCModalHookUPP;
  151. /*    Preference flags.*/
  152.  
  153. enum {
  154.     scListEveryCodec            = 1L << 1,
  155.     scAllowZeroFrameRate        = 1L << 2,
  156.     scAllowZeroKeyFrameRate        = 1L << 3,
  157.     scShowBestDepth                = 1L << 4,
  158.     scUseMovableModal            = 1L << 5,
  159.     scDisableFrameRateItem        = 1L << 6
  160. };
  161.  
  162.  
  163. /*    Possible test flags for setting test image.*/
  164.  
  165. enum {
  166.     scPreferCropping            = 1 << 0,
  167.     scPreferScaling                = 1 << 1,
  168.     scPreferScalingAndCropping    = scPreferScaling | scPreferCropping,
  169.     scDontDetermineSettingsFromTestImage = 1 << 2
  170. };
  171.  
  172.  
  173. /*    Dimensions of the image preview box.*/
  174.  
  175. enum {
  176.     scTestImageWidth            = 80,
  177.     scTestImageHeight            = 80
  178. };
  179.  
  180. /*    Possible items returned by hookProc.*/
  181.  
  182. enum {
  183.     scOKItem                    = 1,
  184.     scCancelItem                = 2,
  185.     scCustomItem                = 3
  186. };
  187.  
  188. /*    Result returned when user cancelled.*/
  189.  
  190. enum {
  191.     scUserCancelled                = 1
  192. };
  193.  
  194.  
  195.  
  196. /* Component selectors*/
  197.  
  198. enum {
  199.     scPositionRect                = 2,
  200.     scPositionDialog            = 3,
  201.     scSetTestImagePictHandle    = 4,
  202.     scSetTestImagePictFile        = 5,
  203.     scSetTestImagePixMap        = 6,
  204.     scGetBestDeviceRect            = 7,
  205.     scRequestImageSettings        = 10,
  206.     scCompressImage                = 11,
  207.     scCompressPicture            = 12,
  208.     scCompressPictureFile        = 13,
  209.     scRequestSequenceSettings    = 14,
  210.     scCompressSequenceBegin        = 15,
  211.     scCompressSequenceFrame        = 16,
  212.     scCompressSequenceEnd        = 17,
  213.     scDefaultPictHandleSettings    = 18,
  214.     scDefaultPictFileSettings    = 19,
  215.     scDefaultPixMapSettings        = 20,
  216.     scGetInfo                    = 21,
  217.     scSetInfo                    = 22,
  218.     scNewGWorld                    = 23
  219. };
  220.  
  221. /*    Get/SetInfo structures.*/
  222.  
  223.  
  224. struct SCSpatialSettings {
  225.     CodecType                         codecType;
  226.     CodecComponent                     codec;
  227.     short                             depth;
  228.     CodecQ                             spatialQuality;
  229. };
  230. typedef struct SCSpatialSettings        SCSpatialSettings;
  231.  
  232. struct SCTemporalSettings {
  233.     CodecQ                             temporalQuality;
  234.     Fixed                             frameRate;
  235.     long                             keyFrameRate;
  236. };
  237. typedef struct SCTemporalSettings        SCTemporalSettings;
  238.  
  239. struct SCDataRateSettings {
  240.     long                             dataRate;
  241.     long                             frameDuration;
  242.     CodecQ                             minSpatialQuality;
  243.     CodecQ                             minTemporalQuality;
  244. };
  245. typedef struct SCDataRateSettings        SCDataRateSettings;
  246.  
  247. struct SCExtendedProcs {
  248.     SCModalFilterUPP                 filterProc;
  249.     SCModalHookUPP                     hookProc;
  250.     long                             refcon;
  251.     Str31                             customName;
  252. };
  253. typedef struct SCExtendedProcs            SCExtendedProcs;
  254. /*    Get/SetInfo selectors*/
  255.  
  256. enum {
  257.     scSpatialSettingsType        = FOUR_CHAR_CODE('sptl'),        /* pointer to SCSpatialSettings struct*/
  258.     scTemporalSettingsType        = FOUR_CHAR_CODE('tprl'),        /* pointer to SCTemporalSettings struct*/
  259.     scDataRateSettingsType        = FOUR_CHAR_CODE('drat'),        /* pointer to SCDataRateSettings struct*/
  260.     scColorTableType            = FOUR_CHAR_CODE('clut'),        /* pointer to CTabHandle*/
  261.     scProgressProcType            = FOUR_CHAR_CODE('prog'),        /* pointer to ProgressRecord struct*/
  262.     scExtendedProcsType            = FOUR_CHAR_CODE('xprc'),        /* pointer to SCExtendedProcs struct*/
  263.     scPreferenceFlagsType        = FOUR_CHAR_CODE('pref'),        /* pointer to long*/
  264.     scSettingsStateType            = FOUR_CHAR_CODE('ssta'),        /* pointer to Handle*/
  265.     scSequenceIDType            = FOUR_CHAR_CODE('sequ'),        /* pointer to ImageSequence*/
  266.     scWindowPositionType        = FOUR_CHAR_CODE('wndw'),        /* pointer to Point*/
  267.     scCodecFlagsType            = FOUR_CHAR_CODE('cflg'),        /* pointer to CodecFlags*/
  268.     scCodecSettingsType            = FOUR_CHAR_CODE('cdec'),        /* pointer to Handle*/
  269.     scForceKeyValueType            = FOUR_CHAR_CODE('ksim'),        /* pointer to long*/
  270.     scSoundSampleRateType        = FOUR_CHAR_CODE('ssrt'),        /* pointer to UnsignedFixed*/
  271.     scSoundSampleSizeType        = FOUR_CHAR_CODE('ssss'),        /* pointer to short*/
  272.     scSoundChannelCountType        = FOUR_CHAR_CODE('sscc'),        /* pointer to short*/
  273.     scSoundCompressionType        = FOUR_CHAR_CODE('ssct'),        /* pointer to OSType*/
  274.     scCompressionListType        = FOUR_CHAR_CODE('ctyl')        /* pointer to OSType Handle*/
  275. };
  276.  
  277. /*    scTypeNotFoundErr returned by Get/SetInfo when type cannot be found.*/
  278.  
  279.  
  280.  
  281. struct SCParams {
  282.     long                             flags;
  283.     CodecType                         theCodecType;
  284.     CodecComponent                     theCodec;
  285.     CodecQ                             spatialQuality;
  286.     CodecQ                             temporalQuality;
  287.     short                             depth;
  288.     Fixed                             frameRate;
  289.     long                             keyFrameRate;
  290.     long                             reserved1;
  291.     long                             reserved2;
  292. };
  293. typedef struct SCParams                    SCParams;
  294.  
  295. enum {
  296.     scGetCompression            = 1,
  297.     scShowMotionSettings        = 1L << 0,
  298.     scSettingsChangedItem        = -1
  299. };
  300.  
  301.  
  302. enum {
  303.     scCompressFlagIgnoreIdenticalFrames = 1
  304. };
  305.  
  306. /* QTAtomTypes for atoms found in settings atom containers*/
  307.  
  308. enum {
  309.     kQTSettingsVideo            = FOUR_CHAR_CODE('vide'),        /* Container for video/image compression related atoms (Get/SetInfo selectors)*/
  310.     kQTSettingsSound            = FOUR_CHAR_CODE('soun')        /* Container for sound compression related atoms (Get/SetInfo selectors)*/
  311. };
  312.  
  313.  
  314. #define SCGetCompression(ci, params, where) SCGetCompressionExtended(ci,params,where,0,0,0,0)
  315. EXTERN_API( ComponentResult )
  316. SCGetCompressionExtended        (ComponentInstance         ci,
  317.                                  SCParams *                params,
  318.                                  Point                     where,
  319.                                  SCModalFilterUPP         filterProc,
  320.                                  SCModalHookUPP         hookProc,
  321.                                  long                     refcon,
  322.                                  StringPtr                 customName)                            FIVEWORDINLINE(0x2F3C, 0x0018, 0x0001, 0x7000, 0xA82A);
  323.  
  324. EXTERN_API( ComponentResult )
  325. SCPositionRect                    (ComponentInstance         ci,
  326.                                  Rect *                    rp,
  327.                                  Point *                where)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0002, 0x7000, 0xA82A);
  328.  
  329. EXTERN_API( ComponentResult )
  330. SCPositionDialog                (ComponentInstance         ci,
  331.                                  short                     id,
  332.                                  Point *                where)                                FIVEWORDINLINE(0x2F3C, 0x0006, 0x0003, 0x7000, 0xA82A);
  333.  
  334. EXTERN_API( ComponentResult )
  335. SCSetTestImagePictHandle        (ComponentInstance         ci,
  336.                                  PicHandle                 testPict,
  337.                                  Rect *                    testRect,
  338.                                  short                     testFlags)                            FIVEWORDINLINE(0x2F3C, 0x000A, 0x0004, 0x7000, 0xA82A);
  339.  
  340. EXTERN_API( ComponentResult )
  341. SCSetTestImagePictFile            (ComponentInstance         ci,
  342.                                  short                     testFileRef,
  343.                                  Rect *                    testRect,
  344.                                  short                     testFlags)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0005, 0x7000, 0xA82A);
  345.  
  346. EXTERN_API( ComponentResult )
  347. SCSetTestImagePixMap            (ComponentInstance         ci,
  348.                                  PixMapHandle             testPixMap,
  349.                                  Rect *                    testRect,
  350.                                  short                     testFlags)                            FIVEWORDINLINE(0x2F3C, 0x000A, 0x0006, 0x7000, 0xA82A);
  351.  
  352. EXTERN_API( ComponentResult )
  353. SCGetBestDeviceRect                (ComponentInstance         ci,
  354.                                  Rect *                    r)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0007, 0x7000, 0xA82A);
  355.  
  356.  
  357. EXTERN_API( ComponentResult )
  358. SCRequestImageSettings            (ComponentInstance         ci)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x000A, 0x7000, 0xA82A);
  359.  
  360. EXTERN_API( ComponentResult )
  361. SCCompressImage                    (ComponentInstance         ci,
  362.                                  PixMapHandle             src,
  363.                                  const Rect *            srcRect,
  364.                                  ImageDescriptionHandle * desc,
  365.                                  Handle *                data)                                FIVEWORDINLINE(0x2F3C, 0x0010, 0x000B, 0x7000, 0xA82A);
  366.  
  367. EXTERN_API( ComponentResult )
  368. SCCompressPicture                (ComponentInstance         ci,
  369.                                  PicHandle                 srcPicture,
  370.                                  PicHandle                 dstPicture)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x000C, 0x7000, 0xA82A);
  371.  
  372. EXTERN_API( ComponentResult )
  373. SCCompressPictureFile            (ComponentInstance         ci,
  374.                                  short                     srcRefNum,
  375.                                  short                     dstRefNum)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x000D, 0x7000, 0xA82A);
  376.  
  377. EXTERN_API( ComponentResult )
  378. SCRequestSequenceSettings        (ComponentInstance         ci)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x000E, 0x7000, 0xA82A);
  379.  
  380. EXTERN_API( ComponentResult )
  381. SCCompressSequenceBegin            (ComponentInstance         ci,
  382.                                  PixMapHandle             src,
  383.                                  const Rect *            srcRect,
  384.                                  ImageDescriptionHandle * desc)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x000F, 0x7000, 0xA82A);
  385.  
  386. EXTERN_API( ComponentResult )
  387. SCCompressSequenceFrame            (ComponentInstance         ci,
  388.                                  PixMapHandle             src,
  389.                                  const Rect *            srcRect,
  390.                                  Handle *                data,
  391.                                  long *                    dataSize,
  392.                                  short *                notSyncFlag)                        FIVEWORDINLINE(0x2F3C, 0x0014, 0x0010, 0x7000, 0xA82A);
  393.  
  394. EXTERN_API( ComponentResult )
  395. SCCompressSequenceEnd            (ComponentInstance         ci)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0011, 0x7000, 0xA82A);
  396.  
  397. EXTERN_API( ComponentResult )
  398. SCDefaultPictHandleSettings        (ComponentInstance         ci,
  399.                                  PicHandle                 srcPicture,
  400.                                  short                     motion)                                FIVEWORDINLINE(0x2F3C, 0x0006, 0x0012, 0x7000, 0xA82A);
  401.  
  402. EXTERN_API( ComponentResult )
  403. SCDefaultPictFileSettings        (ComponentInstance         ci,
  404.                                  short                     srcRef,
  405.                                  short                     motion)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0013, 0x7000, 0xA82A);
  406.  
  407. EXTERN_API( ComponentResult )
  408. SCDefaultPixMapSettings            (ComponentInstance         ci,
  409.                                  PixMapHandle             src,
  410.                                  short                     motion)                                FIVEWORDINLINE(0x2F3C, 0x0006, 0x0014, 0x7000, 0xA82A);
  411.  
  412. EXTERN_API( ComponentResult )
  413. SCGetInfo                        (ComponentInstance         ci,
  414.                                  OSType                 infoType,
  415.                                  void *                    info)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0015, 0x7000, 0xA82A);
  416.  
  417. EXTERN_API( ComponentResult )
  418. SCSetInfo                        (ComponentInstance         ci,
  419.                                  OSType                 infoType,
  420.                                  void *                    info)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0016, 0x7000, 0xA82A);
  421.  
  422. EXTERN_API( ComponentResult )
  423. SCNewGWorld                        (ComponentInstance         ci,
  424.                                  GWorldPtr *            gwp,
  425.                                  Rect *                    rp,
  426.                                  GWorldFlags             flags)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x0017, 0x7000, 0xA82A);
  427.  
  428. EXTERN_API( ComponentResult )
  429. SCSetCompressFlags                (ComponentInstance         ci,
  430.                                  long                     flags)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0018, 0x7000, 0xA82A);
  431.  
  432. EXTERN_API( ComponentResult )
  433. SCGetCompressFlags                (ComponentInstance         ci,
  434.                                  long *                    flags)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0019, 0x7000, 0xA82A);
  435.  
  436. EXTERN_API( ComponentResult )
  437. SCGetSettingsAsText                (ComponentInstance         ci,
  438.                                  Handle *                text)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x001A, 0x7000, 0xA82A);
  439.  
  440. EXTERN_API( ComponentResult )
  441. SCGetSettingsAsAtomContainer    (ComponentInstance         ci,
  442.                                  QTAtomContainer *        settings)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x001B, 0x7000, 0xA82A);
  443.  
  444. EXTERN_API( ComponentResult )
  445. SCSetSettingsFromAtomContainer    (ComponentInstance         ci,
  446.                                  QTAtomContainer         settings)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x001C, 0x7000, 0xA82A);
  447.  
  448.  
  449.  
  450.  
  451.  
  452. enum {
  453.     TweenComponentType            = FOUR_CHAR_CODE('twen')
  454. };
  455.  
  456.  
  457. typedef ComponentInstance                 TweenerComponent;
  458. EXTERN_API( ComponentResult )
  459. TweenerInitialize                (TweenerComponent         tc,
  460.                                  QTAtomContainer         container,
  461.                                  QTAtom                 tweenAtom,
  462.                                  QTAtom                 dataAtom)                            FIVEWORDINLINE(0x2F3C, 0x000C, 0x0001, 0x7000, 0xA82A);
  463.  
  464. EXTERN_API( ComponentResult )
  465. TweenerDoTween                    (TweenerComponent         tc,
  466.                                  TweenRecord *            tr)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0002, 0x7000, 0xA82A);
  467.  
  468. EXTERN_API( ComponentResult )
  469. TweenerReset                    (TweenerComponent         tc)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0003, 0x7000, 0xA82A);
  470.  
  471.  
  472.  
  473.  
  474. enum {
  475.     TCSourceRefNameType            = FOUR_CHAR_CODE('name')
  476. };
  477.  
  478.  
  479. enum {
  480.     tcDropFrame                    = 1 << 0,
  481.     tc24HourMax                    = 1 << 1,
  482.     tcNegTimesOK                = 1 << 2,
  483.     tcCounter                    = 1 << 3
  484. };
  485.  
  486.  
  487. struct TimeCodeDef {
  488.     long                             flags;                        /* drop-frame, etc.*/
  489.     TimeScale                         fTimeScale;                    /* time scale of frameDuration (eg. 2997)*/
  490.     TimeValue                         frameDuration;                /* duration of each frame (eg. 100)*/
  491.     UInt8                             numFrames;                    /* frames/sec for timecode (eg. 30) OR frames/tick for counter mode*/
  492.     UInt8                             padding;                    /* unused padding byte*/
  493. };
  494. typedef struct TimeCodeDef                TimeCodeDef;
  495.  
  496. enum {
  497.     tctNegFlag                    = 0x80                            /* negative bit is in minutes*/
  498. };
  499.  
  500.  
  501. struct TimeCodeTime {
  502.     UInt8                             hours;
  503.     UInt8                             minutes;
  504.     UInt8                             seconds;
  505.     UInt8                             frames;
  506. };
  507. typedef struct TimeCodeTime                TimeCodeTime;
  508.  
  509. struct TimeCodeCounter {
  510.     long                             counter;
  511. };
  512. typedef struct TimeCodeCounter            TimeCodeCounter;
  513.  
  514. union TimeCodeRecord {
  515.     TimeCodeTime                     t;
  516.     TimeCodeCounter                 c;
  517. };
  518. typedef union TimeCodeRecord            TimeCodeRecord;
  519.  
  520. struct TimeCodeDescription {
  521.     long                             descSize;                    /* standard sample description header*/
  522.     long                             dataFormat;
  523.     long                             resvd1;
  524.     short                             resvd2;
  525.     short                             dataRefIndex;
  526.     long                             flags;                        /* timecode specific stuff*/
  527.     TimeCodeDef                     timeCodeDef;
  528.     long                             srcRef[1];
  529. };
  530. typedef struct TimeCodeDescription        TimeCodeDescription;
  531. typedef TimeCodeDescription *            TimeCodeDescriptionPtr;
  532. typedef TimeCodeDescriptionPtr *        TimeCodeDescriptionHandle;
  533.  
  534. enum {
  535.     tcdfShowTimeCode            = 1 << 0
  536. };
  537.  
  538.  
  539.  
  540. struct TCTextOptions {
  541.     short                             txFont;
  542.     short                             txFace;
  543.     short                             txSize;
  544.     short                             pad;                        /* let's make it longword aligned - thanks.. */
  545.     RGBColor                         foreColor;
  546.     RGBColor                         backColor;
  547. };
  548. typedef struct TCTextOptions            TCTextOptions;
  549. typedef TCTextOptions *                    TCTextOptionsPtr;
  550. EXTERN_API( HandlerError )
  551. TCGetCurrentTimeCode            (MediaHandler             mh,
  552.                                  long *                    frameNum,
  553.                                  TimeCodeDef *            tcdef,
  554.                                  TimeCodeRecord *        tcrec,
  555.                                  UserData *                srcRefH)                            FIVEWORDINLINE(0x2F3C, 0x0010, 0x0101, 0x7000, 0xA82A);
  556.  
  557. EXTERN_API( HandlerError )
  558. TCGetTimeCodeAtTime                (MediaHandler             mh,
  559.                                  TimeValue                 mediaTime,
  560.                                  long *                    frameNum,
  561.                                  TimeCodeDef *            tcdef,
  562.                                  TimeCodeRecord *        tcdata,
  563.                                  UserData *                srcRefH)                            FIVEWORDINLINE(0x2F3C, 0x0014, 0x0102, 0x7000, 0xA82A);
  564.  
  565. EXTERN_API( HandlerError )
  566. TCTimeCodeToString                (MediaHandler             mh,
  567.                                  TimeCodeDef *            tcdef,
  568.                                  TimeCodeRecord *        tcrec,
  569.                                  StringPtr                 tcStr)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x0103, 0x7000, 0xA82A);
  570.  
  571. EXTERN_API( HandlerError )
  572. TCTimeCodeToFrameNumber            (MediaHandler             mh,
  573.                                  TimeCodeDef *            tcdef,
  574.                                  TimeCodeRecord *        tcrec,
  575.                                  long *                    frameNumber)                        FIVEWORDINLINE(0x2F3C, 0x000C, 0x0104, 0x7000, 0xA82A);
  576.  
  577. EXTERN_API( HandlerError )
  578. TCFrameNumberToTimeCode            (MediaHandler             mh,
  579.                                  long                     frameNumber,
  580.                                  TimeCodeDef *            tcdef,
  581.                                  TimeCodeRecord *        tcrec)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x0105, 0x7000, 0xA82A);
  582.  
  583. EXTERN_API( HandlerError )
  584. TCGetSourceRef                    (MediaHandler             mh,
  585.                                  TimeCodeDescriptionHandle  tcdH,
  586.                                  UserData *                srefH)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0106, 0x7000, 0xA82A);
  587.  
  588. EXTERN_API( HandlerError )
  589. TCSetSourceRef                    (MediaHandler             mh,
  590.                                  TimeCodeDescriptionHandle  tcdH,
  591.                                  UserData                 srefH)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0107, 0x7000, 0xA82A);
  592.  
  593. EXTERN_API( HandlerError )
  594. TCSetTimeCodeFlags                (MediaHandler             mh,
  595.                                  long                     flags,
  596.                                  long                     flagsMask)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0108, 0x7000, 0xA82A);
  597.  
  598. EXTERN_API( HandlerError )
  599. TCGetTimeCodeFlags                (MediaHandler             mh,
  600.                                  long *                    flags)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0109, 0x7000, 0xA82A);
  601.  
  602. EXTERN_API( HandlerError )
  603. TCSetDisplayOptions                (MediaHandler             mh,
  604.                                  TCTextOptionsPtr         textOptions)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x010A, 0x7000, 0xA82A);
  605.  
  606. EXTERN_API( HandlerError )
  607. TCGetDisplayOptions                (MediaHandler             mh,
  608.                                  TCTextOptionsPtr         textOptions)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x010B, 0x7000, 0xA82A);
  609.  
  610.  
  611.  
  612.  
  613. typedef ComponentInstance                 MovieImportComponent;
  614. typedef ComponentInstance                 MovieExportComponent;
  615.  
  616. enum {
  617.     MovieImportType                = FOUR_CHAR_CODE('eat '),
  618.     MovieExportType                = FOUR_CHAR_CODE('spit')
  619. };
  620.  
  621.  
  622. enum {
  623.     canMovieImportHandles        = 1 << 0,
  624.     canMovieImportFiles            = 1 << 1,
  625.     hasMovieImportUserInterface    = 1 << 2,
  626.     canMovieExportHandles        = 1 << 3,
  627.     canMovieExportFiles            = 1 << 4,
  628.     hasMovieExportUserInterface    = 1 << 5,
  629.     dontAutoFileMovieImport        = 1 << 6,
  630.     canMovieExportAuxDataHandle    = 1 << 7,
  631.     canMovieImportValidateHandles = 1 << 8,
  632.     canMovieImportValidateFile    = 1 << 9,
  633.     dontRegisterWithEasyOpen    = 1 << 10,
  634.     canMovieImportInPlace        = 1 << 11,
  635.     movieImportSubTypeIsFileExtension = 1 << 12,
  636.     canMovieImportPartial        = 1 << 13,
  637.     hasMovieImportMIMEList        = 1 << 14,
  638.     canMovieExportFromProcedures = 1 << 15,
  639.     canMovieExportValidateMovie    = 1L << 16,
  640.     movieExportNeedsResourceFork = 1L << 17,
  641.     canMovieImportDataReferences = 1L << 18,
  642.     movieExportMustGetSourceMediaType = 1L << 19,
  643.     reservedForUseByGraphicsImporters = 1L << 23
  644. };
  645.  
  646.  
  647. enum {
  648.     movieImportCreateTrack        = 1,
  649.     movieImportInParallel        = 2,
  650.     movieImportMustUseTrack        = 4
  651. };
  652.  
  653.  
  654. enum {
  655.     movieImportResultUsedMultipleTracks = 8
  656. };
  657.  
  658.  
  659. enum {
  660.     kMovieExportTextOnly        = 0,
  661.     kMovieExportAbsoluteTime    = 1,
  662.     kMovieExportRelativeTime    = 2
  663. };
  664.  
  665.  
  666. enum {
  667.     kMIDIImportSilenceBefore    = 1 << 0,
  668.     kMIDIImportSilenceAfter        = 1 << 1,
  669.     kMIDIImport20Playable        = 1 << 2,
  670.     kMIDIImportWantLyrics        = 1 << 3
  671. };
  672.  
  673.  
  674. enum {
  675.     kMimeInfoMimeTypeTag        = FOUR_CHAR_CODE('mime'),
  676.     kMimeInfoFileExtensionTag    = FOUR_CHAR_CODE('ext '),
  677.     kMimeInfoDescriptionTag        = FOUR_CHAR_CODE('desc'),
  678.     kMimeInfoGroupTag            = FOUR_CHAR_CODE('grop'),
  679.     kMimeInfoDoNotOverrideExistingFileTypeAssociation = FOUR_CHAR_CODE('nofa')
  680. };
  681.  
  682.  
  683. enum {
  684.     kQTFileTypeAIFF                = FOUR_CHAR_CODE('AIFF'),
  685.     kQTFileTypeAIFC                = FOUR_CHAR_CODE('AIFC'),
  686.     kQTFileTypeDVC                = FOUR_CHAR_CODE('dvc!'),
  687.     kQTFileTypeMIDI                = FOUR_CHAR_CODE('Midi'),
  688.     kQTFileTypePicture            = FOUR_CHAR_CODE('PICT'),
  689.     kQTFileTypeMovie            = FOUR_CHAR_CODE('MooV'),
  690.     kQTFileTypeText                = FOUR_CHAR_CODE('TEXT'),
  691.     kQTFileTypeWave                = FOUR_CHAR_CODE('WAVE'),
  692.     kQTFileTypeSystemSevenSound    = FOUR_CHAR_CODE('sfil'),
  693.     kQTFileTypeMuLaw            = FOUR_CHAR_CODE('ULAW'),
  694.     kQTFileTypeAVI                = FOUR_CHAR_CODE('VfW '),
  695.     kQTFileTypeSoundDesignerII    = FOUR_CHAR_CODE('Sd2f'),
  696.     kQTFileTypeAudioCDTrack        = FOUR_CHAR_CODE('trak'),
  697.     kQTFileTypePICS                = FOUR_CHAR_CODE('PICS'),
  698.     kQTFileTypeGIF                = FOUR_CHAR_CODE('GIFf'),
  699.     kQTFileTypePhotoShop        = FOUR_CHAR_CODE('8BPS'),
  700.     kQTFileTypeSGIImage            = FOUR_CHAR_CODE('.SGI'),
  701.     kQTFileTypeBMP                = FOUR_CHAR_CODE('BMPf'),
  702.     kQTFileTypeJPEG                = FOUR_CHAR_CODE('JPEG'),
  703.     kQTFileTypeJFIF                = FOUR_CHAR_CODE('JPEG'),
  704.     kQTFileTypeMacPaint            = FOUR_CHAR_CODE('PNTG'),
  705.     kQTFileTypeTargaImage        = FOUR_CHAR_CODE('TPIC'),
  706.     kQTFileTypeQuickDrawGXPicture = FOUR_CHAR_CODE('qdgx'),
  707.     kQTFileTypeQuickTimeImage    = FOUR_CHAR_CODE('qtif'),
  708.     kQTFileType3DMF                = FOUR_CHAR_CODE('3DMF')
  709. };
  710.  
  711. /* QTAtomTypes for atoms in import/export settings containers*/
  712.  
  713. enum {
  714.     kQTSettingsEffect            = FOUR_CHAR_CODE('effe'),        /* Parent atom whose contents are atoms of an effects description*/
  715.     kQTSettingsMIDI                = FOUR_CHAR_CODE('MIDI'),        /* MIDI import related container*/
  716.     kQTSettingsMIDISettingFlags    = FOUR_CHAR_CODE('sttg'),        /* MIDI import settings    (UInt32)*/
  717.     kQTSettingsText                = FOUR_CHAR_CODE('text'),        /* Text related container*/
  718.     kQTSettingsTextDescription    = FOUR_CHAR_CODE('desc'),        /* Text settings (TextDescription record)*/
  719.     kQTSettingsTextSize            = FOUR_CHAR_CODE('size'),        /* Width/height to create (FixedPoint)*/
  720.     kQTSettingsTextSettingFlags    = FOUR_CHAR_CODE('sttg'),        /* Text export settings (UInt32)*/
  721.     kQTSettingsTextTimeFraction    = FOUR_CHAR_CODE('timf'),        /* Movie time fraction for export (UInt32)*/
  722.     kQTSettingsTime                = FOUR_CHAR_CODE('time'),        /* Time related container*/
  723.     kQTSettingsAudioCDTrack        = FOUR_CHAR_CODE('trak'),        /* Audio CD track related container*/
  724.     kQTSettingsAudioCDTrackRateShift = FOUR_CHAR_CODE('rshf')    /* Rate shift to be performed (SInt16)*/
  725. };
  726.  
  727.  
  728.  
  729.  
  730.  
  731. struct MovieExportGetDataParams {
  732.     long                             recordSize;
  733.  
  734.     long                             trackID;
  735.  
  736.     TimeScale                         sourceTimeScale;
  737.     TimeValue                         requestedTime;
  738.     TimeValue                         actualTime;
  739.  
  740.     Ptr                             dataPtr;
  741.     long                             dataSize;
  742.  
  743.     SampleDescriptionHandle         desc;
  744.     OSType                             descType;
  745.     long                             descSeed;
  746.  
  747.     long                             requestedSampleCount;
  748.     long                             actualSampleCount;
  749.     TimeValue                         durationPerSample;
  750.     long                             sampleFlags;
  751. };
  752. typedef struct MovieExportGetDataParams    MovieExportGetDataParams;
  753. typedef CALLBACK_API( OSErr , MovieExportGetDataProcPtr )(void *refCon, MovieExportGetDataParams *params);
  754. typedef CALLBACK_API( OSErr , MovieExportGetPropertyProcPtr )(void *refcon, long trackID, OSType propertyType, void *propertyValue);
  755. typedef STACK_UPP_TYPE(MovieExportGetDataProcPtr)                 MovieExportGetDataUPP;
  756. typedef STACK_UPP_TYPE(MovieExportGetPropertyProcPtr)             MovieExportGetPropertyUPP;
  757. enum { uppSCModalFilterProcInfo = 0x00003FD0 };                 /* pascal 1_byte Func(4_bytes, 4_bytes, 4_bytes, 4_bytes) */
  758. enum { uppSCModalHookProcInfo = 0x00003EE0 };                     /* pascal 2_bytes Func(4_bytes, 2_bytes, 4_bytes, 4_bytes) */
  759. enum { uppMovieExportGetDataProcInfo = 0x000003E0 };             /* pascal 2_bytes Func(4_bytes, 4_bytes) */
  760. enum { uppMovieExportGetPropertyProcInfo = 0x00003FE0 };         /* pascal 2_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes) */
  761. #define NewSCModalFilterProc(userRoutine)                         (SCModalFilterUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSCModalFilterProcInfo, GetCurrentArchitecture())
  762. #define NewSCModalHookProc(userRoutine)                         (SCModalHookUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSCModalHookProcInfo, GetCurrentArchitecture())
  763. #define NewMovieExportGetDataProc(userRoutine)                     (MovieExportGetDataUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppMovieExportGetDataProcInfo, GetCurrentArchitecture())
  764. #define NewMovieExportGetPropertyProc(userRoutine)                 (MovieExportGetPropertyUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppMovieExportGetPropertyProcInfo, GetCurrentArchitecture())
  765. #define CallSCModalFilterProc(userRoutine, theDialog, theEvent, itemHit, refcon)  CALL_FOUR_PARAMETER_UPP((userRoutine), uppSCModalFilterProcInfo, (theDialog), (theEvent), (itemHit), (refcon))
  766. #define CallSCModalHookProc(userRoutine, theDialog, itemHit, params, refcon)  CALL_FOUR_PARAMETER_UPP((userRoutine), uppSCModalHookProcInfo, (theDialog), (itemHit), (params), (refcon))
  767. #define CallMovieExportGetDataProc(userRoutine, refCon, params)  CALL_TWO_PARAMETER_UPP((userRoutine), uppMovieExportGetDataProcInfo, (refCon), (params))
  768. #define CallMovieExportGetPropertyProc(userRoutine, refcon, trackID, propertyType, propertyValue)  CALL_FOUR_PARAMETER_UPP((userRoutine), uppMovieExportGetPropertyProcInfo, (refcon), (trackID), (propertyType), (propertyValue))
  769. EXTERN_API( ComponentResult )
  770. MovieImportHandle                (MovieImportComponent     ci,
  771.                                  Handle                 dataH,
  772.                                  Movie                     theMovie,
  773.                                  Track                     targetTrack,
  774.                                  Track *                usedTrack,
  775.                                  TimeValue                 atTime,
  776.                                  TimeValue *            addedDuration,
  777.                                  long                     inFlags,
  778.                                  long *                    outFlags)                            FIVEWORDINLINE(0x2F3C, 0x0020, 0x0001, 0x7000, 0xA82A);
  779.  
  780. EXTERN_API( ComponentResult )
  781. MovieImportFile                    (MovieImportComponent     ci,
  782.                                  const FSSpec *            theFile,
  783.                                  Movie                     theMovie,
  784.                                  Track                     targetTrack,
  785.                                  Track *                usedTrack,
  786.                                  TimeValue                 atTime,
  787.                                  TimeValue *            addedDuration,
  788.                                  long                     inFlags,
  789.                                  long *                    outFlags)                            FIVEWORDINLINE(0x2F3C, 0x0020, 0x0002, 0x7000, 0xA82A);
  790.  
  791. EXTERN_API( ComponentResult )
  792. MovieImportSetSampleDuration    (MovieImportComponent     ci,
  793.                                  TimeValue                 duration,
  794.                                  TimeScale                 scale)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0003, 0x7000, 0xA82A);
  795.  
  796. EXTERN_API( ComponentResult )
  797. MovieImportSetSampleDescription    (MovieImportComponent     ci,
  798.                                  SampleDescriptionHandle  desc,
  799.                                  OSType                 mediaType)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0004, 0x7000, 0xA82A);
  800.  
  801. EXTERN_API( ComponentResult )
  802. MovieImportSetMediaFile            (MovieImportComponent     ci,
  803.                                  AliasHandle             alias)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0005, 0x7000, 0xA82A);
  804.  
  805. EXTERN_API( ComponentResult )
  806. MovieImportSetDimensions        (MovieImportComponent     ci,
  807.                                  Fixed                     width,
  808.                                  Fixed                     height)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0006, 0x7000, 0xA82A);
  809.  
  810. EXTERN_API( ComponentResult )
  811. MovieImportSetChunkSize            (MovieImportComponent     ci,
  812.                                  long                     chunkSize)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0007, 0x7000, 0xA82A);
  813.  
  814. EXTERN_API( ComponentResult )
  815. MovieImportSetProgressProc        (MovieImportComponent     ci,
  816.                                  MovieProgressUPP         proc,
  817.                                  long                     refcon)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0008, 0x7000, 0xA82A);
  818.  
  819. EXTERN_API( ComponentResult )
  820. MovieImportSetAuxiliaryData        (MovieImportComponent     ci,
  821.                                  Handle                 data,
  822.                                  OSType                 handleType)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0009, 0x7000, 0xA82A);
  823.  
  824. EXTERN_API( ComponentResult )
  825. MovieImportSetFromScrap            (MovieImportComponent     ci,
  826.                                  Boolean                 fromScrap)                            FIVEWORDINLINE(0x2F3C, 0x0002, 0x000A, 0x7000, 0xA82A);
  827.  
  828. EXTERN_API( ComponentResult )
  829. MovieImportDoUserDialog            (MovieImportComponent     ci,
  830.                                  const FSSpec *            theFile,
  831.                                  Handle                 theData,
  832.                                  Boolean *                canceled)                            FIVEWORDINLINE(0x2F3C, 0x000C, 0x000B, 0x7000, 0xA82A);
  833.  
  834. EXTERN_API( ComponentResult )
  835. MovieImportSetDuration            (MovieImportComponent     ci,
  836.                                  TimeValue                 duration)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x000C, 0x7000, 0xA82A);
  837.  
  838. EXTERN_API( ComponentResult )
  839. MovieImportGetAuxiliaryDataType    (MovieImportComponent     ci,
  840.                                  OSType *                auxType)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x000D, 0x7000, 0xA82A);
  841.  
  842. EXTERN_API( ComponentResult )
  843. MovieImportValidate                (MovieImportComponent     ci,
  844.                                  const FSSpec *            theFile,
  845.                                  Handle                 theData,
  846.                                  Boolean *                valid)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x000E, 0x7000, 0xA82A);
  847.  
  848. EXTERN_API( ComponentResult )
  849. MovieImportGetFileType            (MovieImportComponent     ci,
  850.                                  OSType *                fileType)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x000F, 0x7000, 0xA82A);
  851.  
  852. EXTERN_API( ComponentResult )
  853. MovieImportDataRef                (MovieImportComponent     ci,
  854.                                  Handle                 dataRef,
  855.                                  OSType                 dataRefType,
  856.                                  Movie                     theMovie,
  857.                                  Track                     targetTrack,
  858.                                  Track *                usedTrack,
  859.                                  TimeValue                 atTime,
  860.                                  TimeValue *            addedDuration,
  861.                                  long                     inFlags,
  862.                                  long *                    outFlags)                            FIVEWORDINLINE(0x2F3C, 0x0024, 0x0010, 0x7000, 0xA82A);
  863.  
  864. EXTERN_API( ComponentResult )
  865. MovieImportGetSampleDescription    (MovieImportComponent     ci,
  866.                                  SampleDescriptionHandle * desc,
  867.                                  OSType *                mediaType)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0011, 0x7000, 0xA82A);
  868.  
  869. EXTERN_API( ComponentResult )
  870. MovieImportGetMIMETypeList        (MovieImportComponent     ci,
  871.                                  QTAtomContainer *        mimeInfo)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0012, 0x7000, 0xA82A);
  872.  
  873. EXTERN_API( ComponentResult )
  874. MovieImportSetOffsetAndLimit    (MovieImportComponent     ci,
  875.                                  unsigned long             offset,
  876.                                  unsigned long             limit)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0013, 0x7000, 0xA82A);
  877.  
  878. EXTERN_API( ComponentResult )
  879. MovieImportGetSettingsAsAtomContainer (MovieImportComponent  ci,
  880.                                  QTAtomContainer *        settings)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0014, 0x7000, 0xA82A);
  881.  
  882. EXTERN_API( ComponentResult )
  883. MovieImportSetSettingsFromAtomContainer (MovieImportComponent  ci,
  884.                                  QTAtomContainer         settings)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0015, 0x7000, 0xA82A);
  885.  
  886. EXTERN_API( ComponentResult )
  887. MovieExportToHandle                (MovieExportComponent     ci,
  888.                                  Handle                 dataH,
  889.                                  Movie                     theMovie,
  890.                                  Track                     onlyThisTrack,
  891.                                  TimeValue                 startTime,
  892.                                  TimeValue                 duration)                            FIVEWORDINLINE(0x2F3C, 0x0014, 0x0080, 0x7000, 0xA82A);
  893.  
  894. EXTERN_API( ComponentResult )
  895. MovieExportToFile                (MovieExportComponent     ci,
  896.                                  const FSSpec *            theFile,
  897.                                  Movie                     theMovie,
  898.                                  Track                     onlyThisTrack,
  899.                                  TimeValue                 startTime,
  900.                                  TimeValue                 duration)                            FIVEWORDINLINE(0x2F3C, 0x0014, 0x0081, 0x7000, 0xA82A);
  901.  
  902. EXTERN_API( ComponentResult )
  903. MovieExportGetAuxiliaryData        (MovieExportComponent     ci,
  904.                                  Handle                 dataH,
  905.                                  OSType *                handleType)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0083, 0x7000, 0xA82A);
  906.  
  907. EXTERN_API( ComponentResult )
  908. MovieExportSetProgressProc        (MovieExportComponent     ci,
  909.                                  MovieProgressUPP         proc,
  910.                                  long                     refcon)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0084, 0x7000, 0xA82A);
  911.  
  912. EXTERN_API( ComponentResult )
  913. MovieExportSetSampleDescription    (MovieExportComponent     ci,
  914.                                  SampleDescriptionHandle  desc,
  915.                                  OSType                 mediaType)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0085, 0x7000, 0xA82A);
  916.  
  917. EXTERN_API( ComponentResult )
  918. MovieExportDoUserDialog            (MovieExportComponent     ci,
  919.                                  Movie                     theMovie,
  920.                                  Track                     onlyThisTrack,
  921.                                  TimeValue                 startTime,
  922.                                  TimeValue                 duration,
  923.                                  Boolean *                canceled)                            FIVEWORDINLINE(0x2F3C, 0x0014, 0x0086, 0x7000, 0xA82A);
  924.  
  925. EXTERN_API( ComponentResult )
  926. MovieExportGetCreatorType        (MovieExportComponent     ci,
  927.                                  OSType *                creator)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0087, 0x7000, 0xA82A);
  928.  
  929. EXTERN_API( ComponentResult )
  930. MovieExportToDataRef            (MovieExportComponent     ci,
  931.                                  Handle                 dataRef,
  932.                                  OSType                 dataRefType,
  933.                                  Movie                     theMovie,
  934.                                  Track                     onlyThisTrack,
  935.                                  TimeValue                 startTime,
  936.                                  TimeValue                 duration)                            FIVEWORDINLINE(0x2F3C, 0x0018, 0x0088, 0x7000, 0xA82A);
  937.  
  938. EXTERN_API( ComponentResult )
  939. MovieExportFromProceduresToDataRef (MovieExportComponent  ci,
  940.                                  Handle                 dataRef,
  941.                                  OSType                 dataRefType)                        FIVEWORDINLINE(0x2F3C, 0x0008, 0x0089, 0x7000, 0xA82A);
  942.  
  943. EXTERN_API( ComponentResult )
  944. MovieExportAddDataSource        (MovieExportComponent     ci,
  945.                                  OSType                 trackType,
  946.                                  TimeScale                 scale,
  947.                                  long *                    trackID,
  948.                                  MovieExportGetPropertyUPP  getPropertyProc,
  949.                                  MovieExportGetDataUPP     getDataProc,
  950.                                  void *                    refCon)                                FIVEWORDINLINE(0x2F3C, 0x0018, 0x008A, 0x7000, 0xA82A);
  951.  
  952. EXTERN_API( ComponentResult )
  953. MovieExportValidate                (MovieExportComponent     ci,
  954.                                  Movie                     theMovie,
  955.                                  Track                     onlyThisTrack,
  956.                                  Boolean *                valid)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x008B, 0x7000, 0xA82A);
  957.  
  958. EXTERN_API( ComponentResult )
  959. MovieExportGetSettingsAsAtomContainer (MovieExportComponent  ci,
  960.                                  QTAtomContainer *        settings)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x008C, 0x7000, 0xA82A);
  961.  
  962. EXTERN_API( ComponentResult )
  963. MovieExportSetSettingsFromAtomContainer (MovieExportComponent  ci,
  964.                                  QTAtomContainer         settings)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x008D, 0x7000, 0xA82A);
  965.  
  966. EXTERN_API( ComponentResult )
  967. MovieExportGetFileNameExtension    (MovieExportComponent     ci,
  968.                                  OSType *                extension)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x008E, 0x7000, 0xA82A);
  969.  
  970. EXTERN_API( ComponentResult )
  971. MovieExportGetShortFileTypeString (MovieExportComponent  ci,
  972.                                  Str255                 typeString)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x008F, 0x7000, 0xA82A);
  973.  
  974. EXTERN_API( ComponentResult )
  975. MovieExportGetSourceMediaType    (MovieExportComponent     ci,
  976.                                  OSType *                mediaType)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0090, 0x7000, 0xA82A);
  977.  
  978. /* Text Export Display Info data structure*/
  979.  
  980. struct TextDisplayData {
  981.     long                             displayFlags;
  982.     long                             textJustification;
  983.     RGBColor                         bgColor;
  984.     Rect                             textBox;
  985.  
  986.     short                             beginHilite;
  987.     short                             endHilite;
  988.     RGBColor                         hiliteColor;
  989.     Boolean                         doHiliteColor;
  990.     SInt8                             filler;
  991.     TimeValue                         scrollDelayDur;
  992.     Point                             dropShadowOffset;
  993.     short                             dropShadowTransparency;
  994. };
  995. typedef struct TextDisplayData            TextDisplayData;
  996.  
  997. typedef ComponentInstance                 TextExportComponent;
  998. typedef ComponentInstance                 GraphicImageMovieImportComponent;
  999. EXTERN_API( ComponentResult )
  1000. TextExportGetDisplayData        (TextExportComponent     ci,
  1001.                                  TextDisplayData *        textDisplay)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0100, 0x7000, 0xA82A);
  1002.  
  1003. EXTERN_API( ComponentResult )
  1004. TextExportGetTimeFraction        (TextExportComponent     ci,
  1005.                                  long *                    movieTimeFraction)                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0101, 0x7000, 0xA82A);
  1006.  
  1007. EXTERN_API( ComponentResult )
  1008. TextExportSetTimeFraction        (TextExportComponent     ci,
  1009.                                  long                     movieTimeFraction)                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0102, 0x7000, 0xA82A);
  1010.  
  1011. EXTERN_API( ComponentResult )
  1012. TextExportGetSettings            (TextExportComponent     ci,
  1013.                                  long *                    setting)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0103, 0x7000, 0xA82A);
  1014.  
  1015. EXTERN_API( ComponentResult )
  1016. TextExportSetSettings            (TextExportComponent     ci,
  1017.                                  long                     setting)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0104, 0x7000, 0xA82A);
  1018.  
  1019.  
  1020. EXTERN_API( ComponentResult )
  1021. MIDIImportGetSettings            (TextExportComponent     ci,
  1022.                                  long *                    setting)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0100, 0x7000, 0xA82A);
  1023.  
  1024. EXTERN_API( ComponentResult )
  1025. MIDIImportSetSettings            (TextExportComponent     ci,
  1026.                                  long                     setting)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0101, 0x7000, 0xA82A);
  1027.  
  1028. EXTERN_API( ComponentResult )
  1029. MovieExportNewGetDataAndPropertiesProcs (MovieExportComponent  ci,
  1030.                                  OSType                 trackType,
  1031.                                  TimeScale *            scale,
  1032.                                  Movie                     theMovie,
  1033.                                  Track                     theTrack,
  1034.                                  TimeValue                 startTime,
  1035.                                  TimeValue                 duration,
  1036.                                  MovieExportGetPropertyUPP * getPropertyProc,
  1037.                                  MovieExportGetDataUPP * getDataProc,
  1038.                                  void **                refCon)                                FIVEWORDINLINE(0x2F3C, 0x0024, 0x0100, 0x7000, 0xA82A);
  1039.  
  1040. EXTERN_API( ComponentResult )
  1041. MovieExportDisposeGetDataAndPropertiesProcs (MovieExportComponent  ci,
  1042.                                  MovieExportGetPropertyUPP  getPropertyProc,
  1043.                                  MovieExportGetDataUPP     getDataProc,
  1044.                                  void *                    refCon)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x0101, 0x7000, 0xA82A);
  1045.  
  1046.  
  1047. enum {
  1048.     movieExportWidth            = FOUR_CHAR_CODE('wdth'),        /* pointer to Fixed*/
  1049.     movieExportHeight            = FOUR_CHAR_CODE('hegt'),        /* pointer to Fixed*/
  1050.     movieExportDuration            = FOUR_CHAR_CODE('dura'),        /* pointer to TimeRecord*/
  1051.     movieExportVideoFilter        = FOUR_CHAR_CODE('iflt')        /* pointer to QTAtomContainer*/
  1052. };
  1053.  
  1054. EXTERN_API( ComponentResult )
  1055. GraphicsImageImportSetSequenceEnabled (GraphicImageMovieImportComponent  ci,
  1056.                                  Boolean                 enable)                                FIVEWORDINLINE(0x2F3C, 0x0002, 0x0100, 0x7000, 0xA82A);
  1057.  
  1058. EXTERN_API( ComponentResult )
  1059. GraphicsImageImportGetSequenceEnabled (GraphicImageMovieImportComponent  ci,
  1060.                                  Boolean *                enable)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0101, 0x7000, 0xA82A);
  1061.  
  1062.  
  1063.  
  1064.  
  1065.  
  1066.  
  1067.  
  1068.  
  1069. /***************
  1070.  
  1071.     File Preview Components
  1072.  
  1073. ***************/
  1074. typedef ComponentInstance                 pnotComponent;
  1075.  
  1076. enum {
  1077.     pnotComponentWantsEvents    = 1,
  1078.     pnotComponentNeedsNoCache    = 2
  1079. };
  1080.  
  1081.  
  1082. enum {
  1083.     ShowFilePreviewComponentType = FOUR_CHAR_CODE('pnot'),
  1084.     CreateFilePreviewComponentType = FOUR_CHAR_CODE('pmak')
  1085. };
  1086.  
  1087. EXTERN_API( ComponentResult )
  1088. PreviewShowData                    (pnotComponent             p,
  1089.                                  OSType                 dataType,
  1090.                                  Handle                 data,
  1091.                                  const Rect *            inHere)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x0001, 0x7000, 0xA82A);
  1092.  
  1093. EXTERN_API( ComponentResult )
  1094. PreviewMakePreview                (pnotComponent             p,
  1095.                                  OSType *                previewType,
  1096.                                  Handle *                previewResult,
  1097.                                  const FSSpec *            sourceFile,
  1098.                                  ICMProgressProcRecordPtr  progress)                        FIVEWORDINLINE(0x2F3C, 0x0010, 0x0002, 0x7000, 0xA82A);
  1099.  
  1100. EXTERN_API( ComponentResult )
  1101. PreviewMakePreviewReference        (pnotComponent             p,
  1102.                                  OSType *                previewType,
  1103.                                  short *                resID,
  1104.                                  const FSSpec *            sourceFile)                            FIVEWORDINLINE(0x2F3C, 0x000C, 0x0003, 0x7000, 0xA82A);
  1105.  
  1106. EXTERN_API( ComponentResult )
  1107. PreviewEvent                    (pnotComponent             p,
  1108.                                  EventRecord *            e,
  1109.                                  Boolean *                handledEvent)                        FIVEWORDINLINE(0x2F3C, 0x0008, 0x0004, 0x7000, 0xA82A);
  1110.  
  1111.  
  1112.  
  1113. typedef ComponentInstance                 DataCompressorComponent;
  1114. typedef ComponentInstance                 DataDecompressorComponent;
  1115. typedef ComponentInstance                 DataCodecComponent;
  1116.  
  1117. enum {
  1118.     DataCompressorComponentType    = FOUR_CHAR_CODE('dcom'),
  1119.     DataDecompressorComponentType = FOUR_CHAR_CODE('ddec'),
  1120.     AppleDataCompressorSubType    = FOUR_CHAR_CODE('adec'),
  1121.     zlibDataCompressorSubType    = FOUR_CHAR_CODE('zlib')
  1122. };
  1123.  
  1124.  
  1125. EXTERN_API( ComponentResult )
  1126. DataCodecDecompress                (DataCodecComponent     dc,
  1127.                                  void *                    srcData,
  1128.                                  UInt32                 srcSize,
  1129.                                  void *                    dstData,
  1130.                                  UInt32                 dstBufferSize)                        FIVEWORDINLINE(0x2F3C, 0x0010, 0x0001, 0x7000, 0xA82A);
  1131.  
  1132. EXTERN_API( ComponentResult )
  1133. DataCodecGetCompressBufferSize    (DataCodecComponent     dc,
  1134.                                  UInt32                 srcSize,
  1135.                                  UInt32 *                dstSize)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0002, 0x7000, 0xA82A);
  1136.  
  1137. EXTERN_API( ComponentResult )
  1138. DataCodecCompress                (DataCodecComponent     dc,
  1139.                                  void *                    srcData,
  1140.                                  UInt32                 srcSize,
  1141.                                  void *                    dstData,
  1142.                                  UInt32                 dstBufferSize,
  1143.                                  UInt32 *                actualDstSize,
  1144.                                  UInt32 *                decompressSlop)                        FIVEWORDINLINE(0x2F3C, 0x0018, 0x0003, 0x7000, 0xA82A);
  1145.  
  1146. EXTERN_API( ComponentResult )
  1147. DataCodecBeginInterruptSafe        (DataCodecComponent     dc,
  1148.                                  unsigned long             maxSrcSize)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0004, 0x7000, 0xA82A);
  1149.  
  1150. EXTERN_API( ComponentResult )
  1151. DataCodecEndInterruptSafe        (DataCodecComponent     dc)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0005, 0x7000, 0xA82A);
  1152.  
  1153. EXTERN_API( ComponentResult )
  1154. DataCodecDecompressPartial        (DataCodecComponent     dc,
  1155.                                  void **                next_in,
  1156.                                  unsigned long *        avail_in,
  1157.                                  unsigned long *        total_in,
  1158.                                  void **                next_out,
  1159.                                  unsigned long *        avail_out,
  1160.                                  unsigned long *        total_out,
  1161.                                  Boolean *                didFinish)                            FIVEWORDINLINE(0x2F3C, 0x001C, 0x0006, 0x7000, 0xA82A);
  1162.  
  1163. EXTERN_API( ComponentResult )
  1164. DataCodecCompressPartial        (DataCodecComponent     dc,
  1165.                                  void **                next_in,
  1166.                                  unsigned long *        avail_in,
  1167.                                  unsigned long *        total_in,
  1168.                                  void **                next_out,
  1169.                                  unsigned long *        avail_out,
  1170.                                  unsigned long *        total_out,
  1171.                                  Boolean                 tryToFinish,
  1172.                                  Boolean *                didFinish)                            FIVEWORDINLINE(0x2F3C, 0x001E, 0x0007, 0x7000, 0xA82A);
  1173.  
  1174.  
  1175.  
  1176.  
  1177. typedef CALLBACK_API( void , DataHCompletionProcPtr )(Ptr request, long refcon, OSErr err);
  1178. typedef STACK_UPP_TYPE(DataHCompletionProcPtr)                     DataHCompletionUPP;
  1179.  
  1180.  
  1181. enum {
  1182.     kDataHCanRead                = 1L << 0,
  1183.     kDataHSpecialRead            = 1L << 1,
  1184.     kDataHSpecialReadFile        = 1L << 2,
  1185.     kDataHCanWrite                = 1L << 3,
  1186.     kDataHSpecialWrite            = 1 << 4,
  1187.     kDataHSpecialWriteFile        = 1 << 5,
  1188.     kDataHCanStreamingWrite        = 1 << 6,
  1189.     kDataHMustCheckDataRef        = 1 << 7
  1190. };
  1191.  
  1192.  
  1193. struct DataHVolumeListRecord {
  1194.     short                             vRefNum;
  1195.     long                             flags;
  1196. };
  1197. typedef struct DataHVolumeListRecord    DataHVolumeListRecord;
  1198.  
  1199. typedef DataHVolumeListRecord *            DataHVolumeListPtr;
  1200. typedef DataHVolumeListPtr *            DataHVolumeList;
  1201.  
  1202. enum {
  1203.     kDataHExtendedSchedule        = FOUR_CHAR_CODE('xtnd')
  1204. };
  1205.  
  1206.  
  1207. struct DataHScheduleRecord {
  1208.     TimeRecord                         timeNeededBy;
  1209.     long                             extendedID;                    /* always is kDataHExtendedSchedule*/
  1210.     long                             extendedVers;                /* always set to 0*/
  1211.     Fixed                             priority;                    /* 100.0 or more means must have. lower numbers…*/
  1212. };
  1213. typedef struct DataHScheduleRecord        DataHScheduleRecord;
  1214.  
  1215. typedef DataHScheduleRecord *            DataHSchedulePtr;
  1216.  
  1217.  
  1218. EXTERN_API( ComponentResult )
  1219. DataHGetData                    (DataHandler             dh,
  1220.                                  Handle                 h,
  1221.                                  long                     hOffset,
  1222.                                  long                     offset,
  1223.                                  long                     size)                                FIVEWORDINLINE(0x2F3C, 0x0010, 0x0002, 0x7000, 0xA82A);
  1224.  
  1225. EXTERN_API( ComponentResult )
  1226. DataHPutData                    (DataHandler             dh,
  1227.                                  Handle                 h,
  1228.                                  long                     hOffset,
  1229.                                  long *                    offset,
  1230.                                  long                     size)                                FIVEWORDINLINE(0x2F3C, 0x0010, 0x0003, 0x7000, 0xA82A);
  1231.  
  1232. EXTERN_API( ComponentResult )
  1233. DataHFlushData                    (DataHandler             dh)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0004, 0x7000, 0xA82A);
  1234.  
  1235. EXTERN_API( ComponentResult )
  1236. DataHOpenForWrite                (DataHandler             dh)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0005, 0x7000, 0xA82A);
  1237.  
  1238. EXTERN_API( ComponentResult )
  1239. DataHCloseForWrite                (DataHandler             dh)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0006, 0x7000, 0xA82A);
  1240.  
  1241.  
  1242. EXTERN_API( ComponentResult )
  1243. DataHOpenForRead                (DataHandler             dh)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0008, 0x7000, 0xA82A);
  1244.  
  1245. EXTERN_API( ComponentResult )
  1246. DataHCloseForRead                (DataHandler             dh)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0009, 0x7000, 0xA82A);
  1247.  
  1248. EXTERN_API( ComponentResult )
  1249. DataHSetDataRef                    (DataHandler             dh,
  1250.                                  Handle                 dataRef)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x000A, 0x7000, 0xA82A);
  1251.  
  1252. EXTERN_API( ComponentResult )
  1253. DataHGetDataRef                    (DataHandler             dh,
  1254.                                  Handle *                dataRef)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x000B, 0x7000, 0xA82A);
  1255.  
  1256. EXTERN_API( ComponentResult )
  1257. DataHCompareDataRef                (DataHandler             dh,
  1258.                                  Handle                 dataRef,
  1259.                                  Boolean *                equal)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x000C, 0x7000, 0xA82A);
  1260.  
  1261. EXTERN_API( ComponentResult )
  1262. DataHTask                        (DataHandler             dh)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x000D, 0x7000, 0xA82A);
  1263.  
  1264. EXTERN_API( ComponentResult )
  1265. DataHScheduleData                (DataHandler             dh,
  1266.                                  Ptr                     PlaceToPutDataPtr,
  1267.                                  long                     FileOffset,
  1268.                                  long                     DataSize,
  1269.                                  long                     RefCon,
  1270.                                  DataHSchedulePtr         scheduleRec,
  1271.                                  DataHCompletionUPP     CompletionRtn)                        FIVEWORDINLINE(0x2F3C, 0x0018, 0x000E, 0x7000, 0xA82A);
  1272.  
  1273. EXTERN_API( ComponentResult )
  1274. DataHFinishData                    (DataHandler             dh,
  1275.                                  Ptr                     PlaceToPutDataPtr,
  1276.                                  Boolean                 Cancel)                                FIVEWORDINLINE(0x2F3C, 0x0006, 0x000F, 0x7000, 0xA82A);
  1277.  
  1278. EXTERN_API( ComponentResult )
  1279. DataHFlushCache                    (DataHandler             dh)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0010, 0x7000, 0xA82A);
  1280.  
  1281. EXTERN_API( ComponentResult )
  1282. DataHResolveDataRef                (DataHandler             dh,
  1283.                                  Handle                 theDataRef,
  1284.                                  Boolean *                wasChanged,
  1285.                                  Boolean                 userInterfaceAllowed)                FIVEWORDINLINE(0x2F3C, 0x000A, 0x0011, 0x7000, 0xA82A);
  1286.  
  1287. EXTERN_API( ComponentResult )
  1288. DataHGetFileSize                (DataHandler             dh,
  1289.                                  long *                    fileSize)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0012, 0x7000, 0xA82A);
  1290.  
  1291. EXTERN_API( ComponentResult )
  1292. DataHCanUseDataRef                (DataHandler             dh,
  1293.                                  Handle                 dataRef,
  1294.                                  long *                    useFlags)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0013, 0x7000, 0xA82A);
  1295.  
  1296. EXTERN_API( ComponentResult )
  1297. DataHGetVolumeList                (DataHandler             dh,
  1298.                                  DataHVolumeList *        volumeList)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0014, 0x7000, 0xA82A);
  1299.  
  1300. EXTERN_API( ComponentResult )
  1301. DataHWrite                        (DataHandler             dh,
  1302.                                  Ptr                     data,
  1303.                                  long                     offset,
  1304.                                  long                     size,
  1305.                                  DataHCompletionUPP     completion,
  1306.                                  long                     refCon)                                FIVEWORDINLINE(0x2F3C, 0x0014, 0x0015, 0x7000, 0xA82A);
  1307.  
  1308. EXTERN_API( ComponentResult )
  1309. DataHPreextend                    (DataHandler             dh,
  1310.                                  unsigned long             maxToAdd,
  1311.                                  unsigned long *        spaceAdded)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0016, 0x7000, 0xA82A);
  1312.  
  1313. EXTERN_API( ComponentResult )
  1314. DataHSetFileSize                (DataHandler             dh,
  1315.                                  long                     fileSize)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0017, 0x7000, 0xA82A);
  1316.  
  1317. EXTERN_API( ComponentResult )
  1318. DataHGetFreeSpace                (DataHandler             dh,
  1319.                                  unsigned long *        freeSize)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0018, 0x7000, 0xA82A);
  1320.  
  1321. EXTERN_API( ComponentResult )
  1322. DataHCreateFile                    (DataHandler             dh,
  1323.                                  OSType                 creator,
  1324.                                  Boolean                 deleteExisting)                        FIVEWORDINLINE(0x2F3C, 0x0006, 0x0019, 0x7000, 0xA82A);
  1325.  
  1326. EXTERN_API( ComponentResult )
  1327. DataHGetPreferredBlockSize        (DataHandler             dh,
  1328.                                  long *                    blockSize)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x001A, 0x7000, 0xA82A);
  1329.  
  1330. EXTERN_API( ComponentResult )
  1331. DataHGetDeviceIndex                (DataHandler             dh,
  1332.                                  long *                    deviceIndex)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x001B, 0x7000, 0xA82A);
  1333.  
  1334. EXTERN_API( ComponentResult )
  1335. DataHIsStreamingDataHandler        (DataHandler             dh,
  1336.                                  Boolean *                yes)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x001C, 0x7000, 0xA82A);
  1337.  
  1338. EXTERN_API( ComponentResult )
  1339. DataHGetDataInBuffer            (DataHandler             dh,
  1340.                                  long                     startOffset,
  1341.                                  long *                    size)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x001D, 0x7000, 0xA82A);
  1342.  
  1343. EXTERN_API( ComponentResult )
  1344. DataHGetScheduleAheadTime        (DataHandler             dh,
  1345.                                  long *                    millisecs)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x001E, 0x7000, 0xA82A);
  1346.  
  1347. EXTERN_API( ComponentResult )
  1348. DataHSetCacheSizeLimit            (DataHandler             dh,
  1349.                                  Size                     cacheSizeLimit)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x001F, 0x7000, 0xA82A);
  1350.  
  1351. EXTERN_API( ComponentResult )
  1352. DataHGetCacheSizeLimit            (DataHandler             dh,
  1353.                                  Size *                    cacheSizeLimit)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0020, 0x7000, 0xA82A);
  1354.  
  1355. EXTERN_API( ComponentResult )
  1356. DataHGetMovie                    (DataHandler             dh,
  1357.                                  Movie *                theMovie,
  1358.                                  short *                id)                                    FIVEWORDINLINE(0x2F3C, 0x0008, 0x0021, 0x7000, 0xA82A);
  1359.  
  1360. EXTERN_API( ComponentResult )
  1361. DataHAddMovie                    (DataHandler             dh,
  1362.                                  Movie                     theMovie,
  1363.                                  short *                id)                                    FIVEWORDINLINE(0x2F3C, 0x0008, 0x0022, 0x7000, 0xA82A);
  1364.  
  1365. EXTERN_API( ComponentResult )
  1366. DataHUpdateMovie                (DataHandler             dh,
  1367.                                  Movie                     theMovie,
  1368.                                  short                     id)                                    FIVEWORDINLINE(0x2F3C, 0x0006, 0x0023, 0x7000, 0xA82A);
  1369.  
  1370. EXTERN_API( ComponentResult )
  1371. DataHDoesBuffer                    (DataHandler             dh,
  1372.                                  Boolean *                buffersReads,
  1373.                                  Boolean *                buffersWrites)                        FIVEWORDINLINE(0x2F3C, 0x0008, 0x0024, 0x7000, 0xA82A);
  1374.  
  1375. EXTERN_API( ComponentResult )
  1376. DataHGetFileName                (DataHandler             dh,
  1377.                                  Str255                 str)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0025, 0x7000, 0xA82A);
  1378.  
  1379. EXTERN_API( ComponentResult )
  1380. DataHGetAvailableFileSize        (DataHandler             dh,
  1381.                                  long *                    fileSize)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0026, 0x7000, 0xA82A);
  1382.  
  1383. EXTERN_API( ComponentResult )
  1384. DataHGetMacOSFileType            (DataHandler             dh,
  1385.                                  OSType *                fileType)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0027, 0x7000, 0xA82A);
  1386.  
  1387. EXTERN_API( ComponentResult )
  1388. DataHGetMIMEType                (DataHandler             dh,
  1389.                                  Str255                 mimeType)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0028, 0x7000, 0xA82A);
  1390.  
  1391. EXTERN_API( ComponentResult )
  1392. DataHSetDataRefWithAnchor        (DataHandler             dh,
  1393.                                  Handle                 anchorDataRef,
  1394.                                  OSType                 dataRefType,
  1395.                                  Handle                 dataRef)                            FIVEWORDINLINE(0x2F3C, 0x000C, 0x0029, 0x7000, 0xA82A);
  1396.  
  1397. EXTERN_API( ComponentResult )
  1398. DataHGetDataRefWithAnchor        (DataHandler             dh,
  1399.                                  Handle                 anchorDataRef,
  1400.                                  OSType                 dataRefType,
  1401.                                  Handle *                dataRef)                            FIVEWORDINLINE(0x2F3C, 0x000C, 0x002A, 0x7000, 0xA82A);
  1402.  
  1403. EXTERN_API( ComponentResult )
  1404. DataHSetMacOSFileType            (DataHandler             dh,
  1405.                                  OSType                 fileType)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x002B, 0x7000, 0xA82A);
  1406.  
  1407. EXTERN_API( ComponentResult )
  1408. DataHSetTimeBase                (DataHandler             dh,
  1409.                                  TimeBase                 tb)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x002C, 0x7000, 0xA82A);
  1410.  
  1411.  
  1412. EXTERN_API( ComponentResult )
  1413. DataHPlaybackHints                (DataHandler             dh,
  1414.                                  long                     flags,
  1415.                                  unsigned long             minFileOffset,
  1416.                                  unsigned long             maxFileOffset,
  1417.                                  long                     bytesPerSecond)                        FIVEWORDINLINE(0x2F3C, 0x0010, 0x0103, 0x7000, 0xA82A);
  1418.  
  1419.  
  1420.  
  1421.  
  1422. /* Standard type for video digitizers */
  1423.  
  1424. enum {
  1425.     videoDigitizerComponentType    = FOUR_CHAR_CODE('vdig'),
  1426.     vdigInterfaceRev            = 2
  1427. };
  1428.  
  1429. /* Input Format Standards */
  1430.  
  1431. enum {
  1432.     ntscIn                        = 0,                            /* current input format */
  1433.     currentIn                    = 0,                            /* ntsc input format */
  1434.     palIn                        = 1,                            /* pal input format */
  1435.     secamIn                        = 2,                            /* secam input format */
  1436.     ntscReallyIn                = 3                                /* ntsc input format */
  1437. };
  1438.  
  1439. /* Input Formats */
  1440.  
  1441. enum {
  1442.     compositeIn                    = 0,                            /* input is composite format */
  1443.     sVideoIn                    = 1,                            /* input is sVideo format */
  1444.     rgbComponentIn                = 2,                            /* input is rgb component format */
  1445.     rgbComponentSyncIn            = 3,                            /* input is rgb component format (sync on green?)*/
  1446.     yuvComponentIn                = 4,                            /* input is yuv component format */
  1447.     yuvComponentSyncIn            = 5,                            /* input is yuv component format (sync on green?) */
  1448.     tvTunerIn                    = 6,
  1449.     sdiIn                        = 7
  1450. };
  1451.  
  1452.  
  1453. /* Video Digitizer PlayThru States */
  1454.  
  1455. enum {
  1456.     vdPlayThruOff                = 0,
  1457.     vdPlayThruOn                = 1
  1458. };
  1459.  
  1460. /* Input Color Space Modes */
  1461.  
  1462. enum {
  1463.     vdDigitizerBW                = 0,                            /* black and white */
  1464.     vdDigitizerRGB                = 1                                /* rgb color */
  1465. };
  1466.  
  1467. /* Phase Lock Loop Modes */
  1468.  
  1469. enum {
  1470.     vdBroadcastMode                = 0,                            /* Broadcast / Laser Disk video mode */
  1471.     vdVTRMode                    = 1                                /* VCR / Magnetic media mode */
  1472. };
  1473.  
  1474. /* Field Select Options */
  1475.  
  1476. enum {
  1477.     vdUseAnyField                = 0,                            /* Digitizers choice on field use */
  1478.     vdUseOddField                = 1,                            /* Use odd field for half size vert and smaller */
  1479.     vdUseEvenField                = 2                                /* Use even field for half size vert and smaller */
  1480. };
  1481.  
  1482. /* vdig types */
  1483.  
  1484. enum {
  1485.     vdTypeBasic                    = 0,                            /* basic, no clipping */
  1486.     vdTypeAlpha                    = 1,                            /* supports clipping with alpha channel */
  1487.     vdTypeMask                    = 2,                            /* supports clipping with mask plane */
  1488.     vdTypeKey                    = 3                                /* supports clipping with key color(s) */
  1489. };
  1490.  
  1491.  
  1492.  
  1493. /* Digitizer Input Capability/Current Flags    */
  1494.  
  1495. enum {
  1496.     digiInDoesNTSC                = 1L << 0,                        /* digitizer supports NTSC input format */
  1497.     digiInDoesPAL                = 1L << 1,                        /* digitizer supports PAL input format */
  1498.     digiInDoesSECAM                = 1L << 2,                        /* digitizer supports SECAM input format */
  1499.     digiInDoesGenLock            = 1L << 7,                        /* digitizer does genlock */
  1500.     digiInDoesComposite            = 1L << 8,                        /* digitizer supports composite input type */
  1501.     digiInDoesSVideo            = 1L << 9,                        /* digitizer supports S-Video input type */
  1502.     digiInDoesComponent            = 1L << 10,                        /* digitizer supports component = rgb, input type */
  1503.     digiInVTR_Broadcast            = 1L << 11,                        /* digitizer can differentiate between the two */
  1504.     digiInDoesColor                = 1L << 12,                        /* digitizer supports color */
  1505.     digiInDoesBW                = 1L << 13,                        /* digitizer supports black & white */
  1506.                                                                 /* Digitizer Input Current Flags = these are valid only during active operating conditions,    */
  1507.     digiInSignalLock            = 1L << 31                        /* digitizer detects input signal is locked, this bit = horiz lock || vertical lock */
  1508. };
  1509.  
  1510.  
  1511. /* Digitizer Output Capability/Current Flags */
  1512.  
  1513. enum {
  1514.     digiOutDoes1                = 1L << 0,                        /* digitizer supports 1 bit pixels */
  1515.     digiOutDoes2                = 1L << 1,                        /* digitizer supports 2 bit pixels */
  1516.     digiOutDoes4                = 1L << 2,                        /* digitizer supports 4 bit pixels */
  1517.     digiOutDoes8                = 1L << 3,                        /* digitizer supports 8 bit pixels */
  1518.     digiOutDoes16                = 1L << 4,                        /* digitizer supports 16 bit pixels */
  1519.     digiOutDoes32                = 1L << 5,                        /* digitizer supports 32 bit pixels */
  1520.     digiOutDoesDither            = 1L << 6,                        /* digitizer dithers in indexed modes */
  1521.     digiOutDoesStretch            = 1L << 7,                        /* digitizer can arbitrarily stretch */
  1522.     digiOutDoesShrink            = 1L << 8,                        /* digitizer can arbitrarily shrink */
  1523.     digiOutDoesMask                = 1L << 9,                        /* digitizer can mask to clipping regions */
  1524.     digiOutDoesDouble            = 1L << 11,                        /* digitizer can stretch to exactly double size */
  1525.     digiOutDoesQuad                = 1L << 12,                        /* digitizer can stretch exactly quadruple size */
  1526.     digiOutDoesQuarter            = 1L << 13,                        /* digitizer can shrink to exactly quarter size */
  1527.     digiOutDoesSixteenth        = 1L << 14,                        /* digitizer can shrink to exactly sixteenth size */
  1528.     digiOutDoesRotate            = 1L << 15,                        /* digitizer supports rotate transformations */
  1529.     digiOutDoesHorizFlip        = 1L << 16,                        /* digitizer supports horizontal flips Sx < 0 */
  1530.     digiOutDoesVertFlip            = 1L << 17,                        /* digitizer supports vertical flips Sy < 0 */
  1531.     digiOutDoesSkew                = 1L << 18,                        /* digitizer supports skew = shear,twist, */
  1532.     digiOutDoesBlend            = 1L << 19,
  1533.     digiOutDoesWarp                = 1L << 20,
  1534.     digiOutDoesHW_DMA            = 1L << 21,                        /* digitizer not constrained to local device */
  1535.     digiOutDoesHWPlayThru        = 1L << 22,                        /* digitizer doesn't need time to play thru */
  1536.     digiOutDoesILUT                = 1L << 23,                        /* digitizer does inverse LUT for index modes */
  1537.     digiOutDoesKeyColor            = 1L << 24,                        /* digitizer does key color functions too */
  1538.     digiOutDoesAsyncGrabs        = 1L << 25,                        /* digitizer supports async grabs */
  1539.     digiOutDoesUnreadableScreenBits = 1L << 26,                    /* playthru doesn't generate readable bits on screen*/
  1540.     digiOutDoesCompress            = 1L << 27,                        /* supports alternate output data types */
  1541.     digiOutDoesCompressOnly        = 1L << 28,                        /* can't provide raw frames anywhere */
  1542.     digiOutDoesPlayThruDuringCompress = 1L << 29,                /* digi can do playthru while providing compressed data */
  1543.     digiOutDoesCompressPartiallyVisible = 1L << 30                /* digi doesn't need all bits visible on screen to do hardware compress */
  1544. };
  1545.  
  1546. /* Types */
  1547. typedef ComponentInstance                 VideoDigitizerComponent;
  1548. typedef ComponentResult                 VideoDigitizerError;
  1549.  
  1550. struct DigitizerInfo {
  1551.     short                             vdigType;
  1552.     long                             inputCapabilityFlags;
  1553.     long                             outputCapabilityFlags;
  1554.     long                             inputCurrentFlags;
  1555.     long                             outputCurrentFlags;
  1556.     short                             slot;                        /* temporary for connection purposes */
  1557.     GDHandle                         gdh;                        /* temporary for digitizers that have preferred screen */
  1558.     GDHandle                         maskgdh;                    /* temporary for digitizers that have mask planes */
  1559.     short                             minDestHeight;                /* Smallest resizable height */
  1560.     short                             minDestWidth;                /* Smallest resizable width */
  1561.     short                             maxDestHeight;                /* Largest resizable height */
  1562.     short                             maxDestWidth;                /* Largest resizable height */
  1563.     short                             blendLevels;                /* Number of blend levels supported (2 if 1 bit mask) */
  1564.     long                             reserved;                    /* reserved */
  1565. };
  1566. typedef struct DigitizerInfo            DigitizerInfo;
  1567.  
  1568. struct VdigType {
  1569.     long                             digType;
  1570.     long                             reserved;
  1571. };
  1572. typedef struct VdigType                    VdigType;
  1573.  
  1574. struct VdigTypeList {
  1575.     short                             count;
  1576.     VdigType                         list[1];
  1577. };
  1578. typedef struct VdigTypeList                VdigTypeList;
  1579.  
  1580. struct VdigBufferRec {
  1581.     PixMapHandle                     dest;
  1582.     Point                             location;
  1583.     long                             reserved;
  1584. };
  1585. typedef struct VdigBufferRec            VdigBufferRec;
  1586.  
  1587. struct VdigBufferRecList {
  1588.     short                             count;
  1589.     MatrixRecordPtr                 matrix;
  1590.     RgnHandle                         mask;
  1591.     VdigBufferRec                     list[1];
  1592. };
  1593. typedef struct VdigBufferRecList        VdigBufferRecList;
  1594. typedef VdigBufferRecList *                VdigBufferRecListPtr;
  1595. typedef VdigBufferRecListPtr *            VdigBufferRecListHandle;
  1596. typedef CALLBACK_API( void , VdigIntProcPtr )(long flags, long refcon);
  1597. typedef STACK_UPP_TYPE(VdigIntProcPtr)                             VdigIntUPP;
  1598.  
  1599. struct VDCompressionList {
  1600.     CodecComponent                     codec;
  1601.     CodecType                         cType;
  1602.     Str63                             typeName;
  1603.     Str63                             name;
  1604.     long                             formatFlags;
  1605.     long                             compressFlags;
  1606.     long                             reserved;
  1607. };
  1608. typedef struct VDCompressionList        VDCompressionList;
  1609. typedef VDCompressionList *                VDCompressionListPtr;
  1610. typedef VDCompressionListPtr *            VDCompressionListHandle;
  1611.  
  1612. enum {
  1613.     dmaDepth1                    = 1,
  1614.     dmaDepth2                    = 2,
  1615.     dmaDepth4                    = 4,
  1616.     dmaDepth8                    = 8,
  1617.     dmaDepth16                    = 16,
  1618.     dmaDepth32                    = 32,
  1619.     dmaDepth2Gray                = 64,
  1620.     dmaDepth4Gray                = 128,
  1621.     dmaDepth8Gray                = 256
  1622. };
  1623.  
  1624.  
  1625. enum {
  1626.     kVDIGControlledFrameRate    = -1
  1627. };
  1628.  
  1629.  
  1630. EXTERN_API( VideoDigitizerError )
  1631. VDGetMaxSrcRect                    (VideoDigitizerComponent  ci,
  1632.                                  short                     inputStd,
  1633.                                  Rect *                    maxSrcRect)                            FIVEWORDINLINE(0x2F3C, 0x0006, 0x0001, 0x7000, 0xA82A);
  1634.  
  1635. EXTERN_API( VideoDigitizerError )
  1636. VDGetActiveSrcRect                (VideoDigitizerComponent  ci,
  1637.                                  short                     inputStd,
  1638.                                  Rect *                    activeSrcRect)                        FIVEWORDINLINE(0x2F3C, 0x0006, 0x0002, 0x7000, 0xA82A);
  1639.  
  1640. EXTERN_API( VideoDigitizerError )
  1641. VDSetDigitizerRect                (VideoDigitizerComponent  ci,
  1642.                                  Rect *                    digitizerRect)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0003, 0x7000, 0xA82A);
  1643.  
  1644. EXTERN_API( VideoDigitizerError )
  1645. VDGetDigitizerRect                (VideoDigitizerComponent  ci,
  1646.                                  Rect *                    digitizerRect)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0004, 0x7000, 0xA82A);
  1647.  
  1648. EXTERN_API( VideoDigitizerError )
  1649. VDGetVBlankRect                    (VideoDigitizerComponent  ci,
  1650.                                  short                     inputStd,
  1651.                                  Rect *                    vBlankRect)                            FIVEWORDINLINE(0x2F3C, 0x0006, 0x0005, 0x7000, 0xA82A);
  1652.  
  1653. EXTERN_API( VideoDigitizerError )
  1654. VDGetMaskPixMap                    (VideoDigitizerComponent  ci,
  1655.                                  PixMapHandle             maskPixMap)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0006, 0x7000, 0xA82A);
  1656.  
  1657. EXTERN_API( VideoDigitizerError )
  1658. VDGetPlayThruDestination        (VideoDigitizerComponent  ci,
  1659.                                  PixMapHandle *            dest,
  1660.                                  Rect *                    destRect,
  1661.                                  MatrixRecord *            m,
  1662.                                  RgnHandle *            mask)                                FIVEWORDINLINE(0x2F3C, 0x0010, 0x0008, 0x7000, 0xA82A);
  1663.  
  1664. EXTERN_API( VideoDigitizerError )
  1665. VDUseThisCLUT                    (VideoDigitizerComponent  ci,
  1666.                                  CTabHandle             colorTableHandle)                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0009, 0x7000, 0xA82A);
  1667.  
  1668. EXTERN_API( VideoDigitizerError )
  1669. VDSetInputGammaValue            (VideoDigitizerComponent  ci,
  1670.                                  Fixed                     channel1,
  1671.                                  Fixed                     channel2,
  1672.                                  Fixed                     channel3)                            FIVEWORDINLINE(0x2F3C, 0x000C, 0x000A, 0x7000, 0xA82A);
  1673.  
  1674. EXTERN_API( VideoDigitizerError )
  1675. VDGetInputGammaValue            (VideoDigitizerComponent  ci,
  1676.                                  Fixed *                channel1,
  1677.                                  Fixed *                channel2,
  1678.                                  Fixed *                channel3)                            FIVEWORDINLINE(0x2F3C, 0x000C, 0x000B, 0x7000, 0xA82A);
  1679.  
  1680. EXTERN_API( VideoDigitizerError )
  1681. VDSetBrightness                    (VideoDigitizerComponent  ci,
  1682.                                  unsigned short *        brightness)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x000C, 0x7000, 0xA82A);
  1683.  
  1684. EXTERN_API( VideoDigitizerError )
  1685. VDGetBrightness                    (VideoDigitizerComponent  ci,
  1686.                                  unsigned short *        brightness)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x000D, 0x7000, 0xA82A);
  1687.  
  1688. EXTERN_API( VideoDigitizerError )
  1689. VDSetContrast                    (VideoDigitizerComponent  ci,
  1690.                                  unsigned short *        contrast)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x000E, 0x7000, 0xA82A);
  1691.  
  1692. EXTERN_API( VideoDigitizerError )
  1693. VDSetHue                        (VideoDigitizerComponent  ci,
  1694.                                  unsigned short *        hue)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x000F, 0x7000, 0xA82A);
  1695.  
  1696. EXTERN_API( VideoDigitizerError )
  1697. VDSetSharpness                    (VideoDigitizerComponent  ci,
  1698.                                  unsigned short *        sharpness)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0010, 0x7000, 0xA82A);
  1699.  
  1700. EXTERN_API( VideoDigitizerError )
  1701. VDSetSaturation                    (VideoDigitizerComponent  ci,
  1702.                                  unsigned short *        saturation)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0011, 0x7000, 0xA82A);
  1703.  
  1704. EXTERN_API( VideoDigitizerError )
  1705. VDGetContrast                    (VideoDigitizerComponent  ci,
  1706.                                  unsigned short *        contrast)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0012, 0x7000, 0xA82A);
  1707.  
  1708. EXTERN_API( VideoDigitizerError )
  1709. VDGetHue                        (VideoDigitizerComponent  ci,
  1710.                                  unsigned short *        hue)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0013, 0x7000, 0xA82A);
  1711.  
  1712. EXTERN_API( VideoDigitizerError )
  1713. VDGetSharpness                    (VideoDigitizerComponent  ci,
  1714.                                  unsigned short *        sharpness)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0014, 0x7000, 0xA82A);
  1715.  
  1716. EXTERN_API( VideoDigitizerError )
  1717. VDGetSaturation                    (VideoDigitizerComponent  ci,
  1718.                                  unsigned short *        saturation)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0015, 0x7000, 0xA82A);
  1719.  
  1720. EXTERN_API( VideoDigitizerError )
  1721. VDGrabOneFrame                    (VideoDigitizerComponent  ci)                                FIVEWORDINLINE(0x2F3C, 0x0000, 0x0016, 0x7000, 0xA82A);
  1722.  
  1723. EXTERN_API( VideoDigitizerError )
  1724. VDGetMaxAuxBuffer                (VideoDigitizerComponent  ci,
  1725.                                  PixMapHandle *            pm,
  1726.                                  Rect *                    r)                                    FIVEWORDINLINE(0x2F3C, 0x0008, 0x0017, 0x7000, 0xA82A);
  1727.  
  1728. EXTERN_API( VideoDigitizerError )
  1729. VDGetDigitizerInfo                (VideoDigitizerComponent  ci,
  1730.                                  DigitizerInfo *        info)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0019, 0x7000, 0xA82A);
  1731.  
  1732. EXTERN_API( VideoDigitizerError )
  1733. VDGetCurrentFlags                (VideoDigitizerComponent  ci,
  1734.                                  long *                    inputCurrentFlag,
  1735.                                  long *                    outputCurrentFlag)                    FIVEWORDINLINE(0x2F3C, 0x0008, 0x001A, 0x7000, 0xA82A);
  1736.  
  1737. EXTERN_API( VideoDigitizerError )
  1738. VDSetKeyColor                    (VideoDigitizerComponent  ci,
  1739.                                  long                     index)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x001B, 0x7000, 0xA82A);
  1740.  
  1741. EXTERN_API( VideoDigitizerError )
  1742. VDGetKeyColor                    (VideoDigitizerComponent  ci,
  1743.                                  long *                    index)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x001C, 0x7000, 0xA82A);
  1744.  
  1745. EXTERN_API( VideoDigitizerError )
  1746. VDAddKeyColor                    (VideoDigitizerComponent  ci,
  1747.                                  long *                    index)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x001D, 0x7000, 0xA82A);
  1748.  
  1749. EXTERN_API( VideoDigitizerError )
  1750. VDGetNextKeyColor                (VideoDigitizerComponent  ci,
  1751.                                  long                     index)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x001E, 0x7000, 0xA82A);
  1752.  
  1753. EXTERN_API( VideoDigitizerError )
  1754. VDSetKeyColorRange                (VideoDigitizerComponent  ci,
  1755.                                  RGBColor *                minRGB,
  1756.                                  RGBColor *                maxRGB)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x001F, 0x7000, 0xA82A);
  1757.  
  1758. EXTERN_API( VideoDigitizerError )
  1759. VDGetKeyColorRange                (VideoDigitizerComponent  ci,
  1760.                                  RGBColor *                minRGB,
  1761.                                  RGBColor *                maxRGB)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0020, 0x7000, 0xA82A);
  1762.  
  1763. EXTERN_API( VideoDigitizerError )
  1764. VDSetDigitizerUserInterrupt        (VideoDigitizerComponent  ci,
  1765.                                  long                     flags,
  1766.                                  VdigIntUPP             userInterruptProc,
  1767.                                  long                     refcon)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x0021, 0x7000, 0xA82A);
  1768.  
  1769. EXTERN_API( VideoDigitizerError )
  1770. VDSetInputColorSpaceMode        (VideoDigitizerComponent  ci,
  1771.                                  short                     colorSpaceMode)                        FIVEWORDINLINE(0x2F3C, 0x0002, 0x0022, 0x7000, 0xA82A);
  1772.  
  1773. EXTERN_API( VideoDigitizerError )
  1774. VDGetInputColorSpaceMode        (VideoDigitizerComponent  ci,
  1775.                                  short *                colorSpaceMode)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0023, 0x7000, 0xA82A);
  1776.  
  1777. EXTERN_API( VideoDigitizerError )
  1778. VDSetClipState                    (VideoDigitizerComponent  ci,
  1779.                                  short                     clipEnable)                            FIVEWORDINLINE(0x2F3C, 0x0002, 0x0024, 0x7000, 0xA82A);
  1780.  
  1781. EXTERN_API( VideoDigitizerError )
  1782. VDGetClipState                    (VideoDigitizerComponent  ci,
  1783.                                  short *                clipEnable)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0025, 0x7000, 0xA82A);
  1784.  
  1785. EXTERN_API( VideoDigitizerError )
  1786. VDSetClipRgn                    (VideoDigitizerComponent  ci,
  1787.                                  RgnHandle                 clipRegion)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0026, 0x7000, 0xA82A);
  1788.  
  1789. EXTERN_API( VideoDigitizerError )
  1790. VDClearClipRgn                    (VideoDigitizerComponent  ci,
  1791.                                  RgnHandle                 clipRegion)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0027, 0x7000, 0xA82A);
  1792.  
  1793. EXTERN_API( VideoDigitizerError )
  1794. VDGetCLUTInUse                    (VideoDigitizerComponent  ci,
  1795.                                  CTabHandle *            colorTableHandle)                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0028, 0x7000, 0xA82A);
  1796.  
  1797. EXTERN_API( VideoDigitizerError )
  1798. VDSetPLLFilterType                (VideoDigitizerComponent  ci,
  1799.                                  short                     pllType)                            FIVEWORDINLINE(0x2F3C, 0x0002, 0x0029, 0x7000, 0xA82A);
  1800.  
  1801. EXTERN_API( VideoDigitizerError )
  1802. VDGetPLLFilterType                (VideoDigitizerComponent  ci,
  1803.                                  short *                pllType)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x002A, 0x7000, 0xA82A);
  1804.  
  1805. EXTERN_API( VideoDigitizerError )
  1806. VDGetMaskandValue                (VideoDigitizerComponent  ci,
  1807.                                  unsigned short         blendLevel,
  1808.                                  long *                    mask,
  1809.                                  long *                    value)                                FIVEWORDINLINE(0x2F3C, 0x000A, 0x002B, 0x7000, 0xA82A);
  1810.  
  1811. EXTERN_API( VideoDigitizerError )
  1812. VDSetMasterBlendLevel            (VideoDigitizerComponent  ci,
  1813.                                  unsigned short *        blendLevel)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x002C, 0x7000, 0xA82A);
  1814.  
  1815. EXTERN_API( VideoDigitizerError )
  1816. VDSetPlayThruDestination        (VideoDigitizerComponent  ci,
  1817.                                  PixMapHandle             dest,
  1818.                                  RectPtr                 destRect,
  1819.                                  MatrixRecordPtr         m,
  1820.                                  RgnHandle                 mask)                                FIVEWORDINLINE(0x2F3C, 0x0010, 0x002D, 0x7000, 0xA82A);
  1821.  
  1822. EXTERN_API( VideoDigitizerError )
  1823. VDSetPlayThruOnOff                (VideoDigitizerComponent  ci,
  1824.                                  short                     state)                                FIVEWORDINLINE(0x2F3C, 0x0002, 0x002E, 0x7000, 0xA82A);
  1825.  
  1826. EXTERN_API( VideoDigitizerError )
  1827. VDSetFieldPreference            (VideoDigitizerComponent  ci,
  1828.                                  short                     fieldFlag)                            FIVEWORDINLINE(0x2F3C, 0x0002, 0x002F, 0x7000, 0xA82A);
  1829.  
  1830. EXTERN_API( VideoDigitizerError )
  1831. VDGetFieldPreference            (VideoDigitizerComponent  ci,
  1832.                                  short *                fieldFlag)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0030, 0x7000, 0xA82A);
  1833.  
  1834. EXTERN_API( VideoDigitizerError )
  1835. VDPreflightDestination            (VideoDigitizerComponent  ci,
  1836.                                  Rect *                    digitizerRect,
  1837.                                  PixMap **                dest,
  1838.                                  RectPtr                 destRect,
  1839.                                  MatrixRecordPtr         m)                                    FIVEWORDINLINE(0x2F3C, 0x0010, 0x0032, 0x7000, 0xA82A);
  1840.  
  1841. EXTERN_API( VideoDigitizerError )
  1842. VDPreflightGlobalRect            (VideoDigitizerComponent  ci,
  1843.                                  GrafPtr                 theWindow,
  1844.                                  Rect *                    globalRect)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0033, 0x7000, 0xA82A);
  1845.  
  1846. EXTERN_API( VideoDigitizerError )
  1847. VDSetPlayThruGlobalRect            (VideoDigitizerComponent  ci,
  1848.                                  GrafPtr                 theWindow,
  1849.                                  Rect *                    globalRect)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0034, 0x7000, 0xA82A);
  1850.  
  1851. EXTERN_API( VideoDigitizerError )
  1852. VDSetInputGammaRecord            (VideoDigitizerComponent  ci,
  1853.                                  VDGamRecPtr             inputGammaPtr)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0035, 0x7000, 0xA82A);
  1854.  
  1855. EXTERN_API( VideoDigitizerError )
  1856. VDGetInputGammaRecord            (VideoDigitizerComponent  ci,
  1857.                                  VDGamRecPtr *            inputGammaPtr)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0036, 0x7000, 0xA82A);
  1858.  
  1859. EXTERN_API( VideoDigitizerError )
  1860. VDSetBlackLevelValue            (VideoDigitizerComponent  ci,
  1861.                                  unsigned short *        blackLevel)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0037, 0x7000, 0xA82A);
  1862.  
  1863. EXTERN_API( VideoDigitizerError )
  1864. VDGetBlackLevelValue            (VideoDigitizerComponent  ci,
  1865.                                  unsigned short *        blackLevel)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0038, 0x7000, 0xA82A);
  1866.  
  1867. EXTERN_API( VideoDigitizerError )
  1868. VDSetWhiteLevelValue            (VideoDigitizerComponent  ci,
  1869.                                  unsigned short *        whiteLevel)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0039, 0x7000, 0xA82A);
  1870.  
  1871. EXTERN_API( VideoDigitizerError )
  1872. VDGetWhiteLevelValue            (VideoDigitizerComponent  ci,
  1873.                                  unsigned short *        whiteLevel)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x003A, 0x7000, 0xA82A);
  1874.  
  1875. EXTERN_API( VideoDigitizerError )
  1876. VDGetVideoDefaults                (VideoDigitizerComponent  ci,
  1877.                                  unsigned short *        blackLevel,
  1878.                                  unsigned short *        whiteLevel,
  1879.                                  unsigned short *        brightness,
  1880.                                  unsigned short *        hue,
  1881.                                  unsigned short *        saturation,
  1882.                                  unsigned short *        contrast,
  1883.                                  unsigned short *        sharpness)                            FIVEWORDINLINE(0x2F3C, 0x001C, 0x003B, 0x7000, 0xA82A);
  1884.  
  1885. EXTERN_API( VideoDigitizerError )
  1886. VDGetNumberOfInputs                (VideoDigitizerComponent  ci,
  1887.                                  short *                inputs)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x003C, 0x7000, 0xA82A);
  1888.  
  1889. EXTERN_API( VideoDigitizerError )
  1890. VDGetInputFormat                (VideoDigitizerComponent  ci,
  1891.                                  short                     input,
  1892.                                  short *                format)                                FIVEWORDINLINE(0x2F3C, 0x0006, 0x003D, 0x7000, 0xA82A);
  1893.  
  1894. EXTERN_API( VideoDigitizerError )
  1895. VDSetInput                        (VideoDigitizerComponent  ci,
  1896.                                  short                     input)                                FIVEWORDINLINE(0x2F3C, 0x0002, 0x003E, 0x7000, 0xA82A);
  1897.  
  1898. EXTERN_API( VideoDigitizerError )
  1899. VDGetInput                        (VideoDigitizerComponent  ci,
  1900.                                  short *                input)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x003F, 0x7000, 0xA82A);
  1901.  
  1902. EXTERN_API( VideoDigitizerError )
  1903. VDSetInputStandard                (VideoDigitizerComponent  ci,
  1904.                                  short                     inputStandard)                        FIVEWORDINLINE(0x2F3C, 0x0002, 0x0040, 0x7000, 0xA82A);
  1905.  
  1906. EXTERN_API( VideoDigitizerError )
  1907. VDSetupBuffers                    (VideoDigitizerComponent  ci,
  1908.                                  VdigBufferRecListHandle  bufferList)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0041, 0x7000, 0xA82A);
  1909.  
  1910. EXTERN_API( VideoDigitizerError )
  1911. VDGrabOneFrameAsync                (VideoDigitizerComponent  ci,
  1912.                                  short                     buffer)                                FIVEWORDINLINE(0x2F3C, 0x0002, 0x0042, 0x7000, 0xA82A);
  1913.  
  1914. EXTERN_API( VideoDigitizerError )
  1915. VDDone                            (VideoDigitizerComponent  ci,
  1916.                                  short                     buffer)                                FIVEWORDINLINE(0x2F3C, 0x0002, 0x0043, 0x7000, 0xA82A);
  1917.  
  1918. EXTERN_API( VideoDigitizerError )
  1919. VDSetCompression                (VideoDigitizerComponent  ci,
  1920.                                  OSType                 compressType,
  1921.                                  short                     depth,
  1922.                                  Rect *                    bounds,
  1923.                                  CodecQ                 spatialQuality,
  1924.                                  CodecQ                 temporalQuality,
  1925.                                  long                     keyFrameRate)                        FIVEWORDINLINE(0x2F3C, 0x0016, 0x0044, 0x7000, 0xA82A);
  1926.  
  1927. EXTERN_API( VideoDigitizerError )
  1928. VDCompressOneFrameAsync            (VideoDigitizerComponent  ci)                                FIVEWORDINLINE(0x2F3C, 0x0000, 0x0045, 0x7000, 0xA82A);
  1929.  
  1930. EXTERN_API( VideoDigitizerError )
  1931. VDCompressDone                    (VideoDigitizerComponent  ci,
  1932.                                  Boolean *                done,
  1933.                                  Ptr *                    theData,
  1934.                                  long *                    dataSize,
  1935.                                  UInt8 *                similarity,
  1936.                                  TimeRecord *            t)                                    FIVEWORDINLINE(0x2F3C, 0x0014, 0x0046, 0x7000, 0xA82A);
  1937.  
  1938. EXTERN_API( VideoDigitizerError )
  1939. VDReleaseCompressBuffer            (VideoDigitizerComponent  ci,
  1940.                                  Ptr                     bufferAddr)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0047, 0x7000, 0xA82A);
  1941.  
  1942. EXTERN_API( VideoDigitizerError )
  1943. VDGetImageDescription            (VideoDigitizerComponent  ci,
  1944.                                  ImageDescriptionHandle  desc)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0048, 0x7000, 0xA82A);
  1945.  
  1946. EXTERN_API( VideoDigitizerError )
  1947. VDResetCompressSequence            (VideoDigitizerComponent  ci)                                FIVEWORDINLINE(0x2F3C, 0x0000, 0x0049, 0x7000, 0xA82A);
  1948.  
  1949. EXTERN_API( VideoDigitizerError )
  1950. VDSetCompressionOnOff            (VideoDigitizerComponent  ci,
  1951.                                  Boolean                 state)                                FIVEWORDINLINE(0x2F3C, 0x0002, 0x004A, 0x7000, 0xA82A);
  1952.  
  1953. EXTERN_API( VideoDigitizerError )
  1954. VDGetCompressionTypes            (VideoDigitizerComponent  ci,
  1955.                                  VDCompressionListHandle  h)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x004B, 0x7000, 0xA82A);
  1956.  
  1957. EXTERN_API( VideoDigitizerError )
  1958. VDSetTimeBase                    (VideoDigitizerComponent  ci,
  1959.                                  TimeBase                 t)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x004C, 0x7000, 0xA82A);
  1960.  
  1961. EXTERN_API( VideoDigitizerError )
  1962. VDSetFrameRate                    (VideoDigitizerComponent  ci,
  1963.                                  Fixed                     framesPerSecond)                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x004D, 0x7000, 0xA82A);
  1964.  
  1965. EXTERN_API( VideoDigitizerError )
  1966. VDGetDataRate                    (VideoDigitizerComponent  ci,
  1967.                                  long *                    milliSecPerFrame,
  1968.                                  Fixed *                framesPerSecond,
  1969.                                  long *                    bytesPerSecond)                        FIVEWORDINLINE(0x2F3C, 0x000C, 0x004E, 0x7000, 0xA82A);
  1970.  
  1971. EXTERN_API( VideoDigitizerError )
  1972. VDGetSoundInputDriver            (VideoDigitizerComponent  ci,
  1973.                                  Str255                 soundDriverName)                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x004F, 0x7000, 0xA82A);
  1974.  
  1975. EXTERN_API( VideoDigitizerError )
  1976. VDGetDMADepths                    (VideoDigitizerComponent  ci,
  1977.                                  long *                    depthArray,
  1978.                                  long *                    preferredDepth)                        FIVEWORDINLINE(0x2F3C, 0x0008, 0x0050, 0x7000, 0xA82A);
  1979.  
  1980. EXTERN_API( VideoDigitizerError )
  1981. VDGetPreferredTimeScale            (VideoDigitizerComponent  ci,
  1982.                                  TimeScale *            preferred)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0051, 0x7000, 0xA82A);
  1983.  
  1984. EXTERN_API( VideoDigitizerError )
  1985. VDReleaseAsyncBuffers            (VideoDigitizerComponent  ci)                                FIVEWORDINLINE(0x2F3C, 0x0000, 0x0052, 0x7000, 0xA82A);
  1986.  
  1987. /* 83 is reserved for compatibility reasons */
  1988. EXTERN_API( VideoDigitizerError )
  1989. VDSetDataRate                    (VideoDigitizerComponent  ci,
  1990.                                  long                     bytesPerSecond)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0054, 0x7000, 0xA82A);
  1991.  
  1992. EXTERN_API( VideoDigitizerError )
  1993. VDGetTimeCode                    (VideoDigitizerComponent  ci,
  1994.                                  TimeRecord *            atTime,
  1995.                                  void *                    timeCodeFormat,
  1996.                                  void *                    timeCodeTime)                        FIVEWORDINLINE(0x2F3C, 0x000C, 0x0055, 0x7000, 0xA82A);
  1997.  
  1998. EXTERN_API( VideoDigitizerError )
  1999. VDUseSafeBuffers                (VideoDigitizerComponent  ci,
  2000.                                  Boolean                 useSafeBuffers)                        FIVEWORDINLINE(0x2F3C, 0x0002, 0x0056, 0x7000, 0xA82A);
  2001.  
  2002. EXTERN_API( VideoDigitizerError )
  2003. VDGetSoundInputSource            (VideoDigitizerComponent  ci,
  2004.                                  long                     videoInput,
  2005.                                  long *                    soundInput)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0057, 0x7000, 0xA82A);
  2006.  
  2007. EXTERN_API( VideoDigitizerError )
  2008. VDGetCompressionTime            (VideoDigitizerComponent  ci,
  2009.                                  OSType                 compressionType,
  2010.                                  short                     depth,
  2011.                                  Rect *                    srcRect,
  2012.                                  CodecQ *                spatialQuality,
  2013.                                  CodecQ *                temporalQuality,
  2014.                                  unsigned long *        compressTime)                        FIVEWORDINLINE(0x2F3C, 0x0016, 0x0058, 0x7000, 0xA82A);
  2015.  
  2016. EXTERN_API( VideoDigitizerError )
  2017. VDSetPreferredPacketSize        (VideoDigitizerComponent  ci,
  2018.                                  long                     preferredPacketSizeInBytes)            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0059, 0x7000, 0xA82A);
  2019.  
  2020. EXTERN_API( VideoDigitizerError )
  2021. VDSetPreferredImageDimensions    (VideoDigitizerComponent  ci,
  2022.                                  long                     width,
  2023.                                  long                     height)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x005A, 0x7000, 0xA82A);
  2024.  
  2025. EXTERN_API( VideoDigitizerError )
  2026. VDGetPreferredImageDimensions    (VideoDigitizerComponent  ci,
  2027.                                  long *                    width,
  2028.                                  long *                    height)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x005B, 0x7000, 0xA82A);
  2029.  
  2030. EXTERN_API( VideoDigitizerError )
  2031. VDGetInputName                    (VideoDigitizerComponent  ci,
  2032.                                  long                     videoInput,
  2033.                                  Str255                 name)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x005C, 0x7000, 0xA82A);
  2034.  
  2035. EXTERN_API( VideoDigitizerError )
  2036. VDSetDestinationPort            (VideoDigitizerComponent  ci,
  2037.                                  CGrafPtr                 destPort)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x005D, 0x7000, 0xA82A);
  2038.  
  2039.  
  2040.  
  2041. /*
  2042.     General Sequence Grab stuff
  2043. */
  2044.  
  2045. typedef ComponentInstance                 SeqGrabComponent;
  2046. typedef ComponentInstance                 SGChannel;
  2047.  
  2048. enum {
  2049.     SeqGrabComponentType        = FOUR_CHAR_CODE('barg'),
  2050.     SeqGrabChannelType            = FOUR_CHAR_CODE('sgch'),
  2051.     SeqGrabPanelType            = FOUR_CHAR_CODE('sgpn'),
  2052.     SeqGrabCompressionPanelType    = FOUR_CHAR_CODE('cmpr'),
  2053.     SeqGrabSourcePanelType        = FOUR_CHAR_CODE('sour')
  2054. };
  2055.  
  2056.  
  2057. enum {
  2058.     seqGrabToDisk                = 1,
  2059.     seqGrabToMemory                = 2,
  2060.     seqGrabDontUseTempMemory    = 4,
  2061.     seqGrabAppendToFile            = 8,
  2062.     seqGrabDontAddMovieResource    = 16,
  2063.     seqGrabDontMakeMovie        = 32,
  2064.     seqGrabPreExtendFile        = 64,
  2065.     seqGrabDataProcIsInterruptSafe = 128,
  2066.     seqGrabDataProcDoesOverlappingReads = 256
  2067. };
  2068.  
  2069. typedef unsigned long                     SeqGrabDataOutputEnum;
  2070.  
  2071. enum {
  2072.     seqGrabRecord                = 1,
  2073.     seqGrabPreview                = 2,
  2074.     seqGrabPlayDuringRecord        = 4
  2075. };
  2076.  
  2077. typedef unsigned long                     SeqGrabUsageEnum;
  2078.  
  2079. enum {
  2080.     seqGrabHasBounds            = 1,
  2081.     seqGrabHasVolume            = 2,
  2082.     seqGrabHasDiscreteSamples    = 4
  2083. };
  2084.  
  2085. typedef unsigned long                     SeqGrabChannelInfoEnum;
  2086.  
  2087. struct SGOutputRecord {
  2088.     long                             data[1];
  2089. };
  2090. typedef struct SGOutputRecord            SGOutputRecord;
  2091.  
  2092. typedef SGOutputRecord *                SGOutput;
  2093.  
  2094. struct SeqGrabFrameInfo {
  2095.     long                             frameOffset;
  2096.     long                             frameTime;
  2097.     long                             frameSize;
  2098.     SGChannel                         frameChannel;
  2099.     long                             frameRefCon;
  2100. };
  2101. typedef struct SeqGrabFrameInfo            SeqGrabFrameInfo;
  2102. typedef SeqGrabFrameInfo *                SeqGrabFrameInfoPtr;
  2103.  
  2104. struct SeqGrabExtendedFrameInfo {
  2105.     wide                             frameOffset;
  2106.     long                             frameTime;
  2107.     long                             frameSize;
  2108.     SGChannel                         frameChannel;
  2109.     long                             frameRefCon;
  2110.     SGOutput                         frameOutput;
  2111. };
  2112. typedef struct SeqGrabExtendedFrameInfo    SeqGrabExtendedFrameInfo;
  2113. typedef SeqGrabExtendedFrameInfo *        SeqGrabExtendedFrameInfoPtr;
  2114.  
  2115. enum {
  2116.     grabPictOffScreen            = 1,
  2117.     grabPictIgnoreClip            = 2,
  2118.     grabPictCurrentImage        = 4
  2119. };
  2120.  
  2121.  
  2122. enum {
  2123.     sgFlagControlledGrab        = (1 << 0)
  2124. };
  2125.  
  2126. typedef CALLBACK_API( OSErr , SGDataProcPtr )(SGChannel c, Ptr p, long len, long *offset, long chRefCon, TimeValue time, short writeType, long refCon);
  2127. typedef STACK_UPP_TYPE(SGDataProcPtr)                             SGDataUPP;
  2128.  
  2129. struct SGDeviceName {
  2130.     Str63                             name;
  2131.     Handle                             icon;
  2132.     long                             flags;
  2133.     long                             refCon;
  2134.     long                             reserved;                    /* zero*/
  2135. };
  2136. typedef struct SGDeviceName                SGDeviceName;
  2137.  
  2138. enum {
  2139.     sgDeviceNameFlagDeviceUnavailable = (1 << 0)
  2140. };
  2141.  
  2142.  
  2143. struct SGDeviceListRecord {
  2144.     short                             count;
  2145.     short                             selectedIndex;
  2146.     long                             reserved;                    /* zero*/
  2147.     SGDeviceName                     entry[1];
  2148. };
  2149. typedef struct SGDeviceListRecord        SGDeviceListRecord;
  2150.  
  2151. typedef SGDeviceListRecord *            SGDeviceListPtr;
  2152. typedef SGDeviceListPtr *                SGDeviceList;
  2153.  
  2154. enum {
  2155.     sgDeviceListWithIcons        = (1 << 0),
  2156.     sgDeviceListDontCheckAvailability = (1 << 1)
  2157. };
  2158.  
  2159.  
  2160. enum {
  2161.     seqGrabWriteAppend            = 0,
  2162.     seqGrabWriteReserve            = 1,
  2163.     seqGrabWriteFill            = 2
  2164. };
  2165.  
  2166.  
  2167. enum {
  2168.     seqGrabUnpause                = 0,
  2169.     seqGrabPause                = 1,
  2170.     seqGrabPauseForMenu            = 3
  2171. };
  2172.  
  2173.  
  2174. enum {
  2175.     channelFlagDontOpenResFile    = 2,
  2176.     channelFlagHasDependency    = 4
  2177. };
  2178.  
  2179. typedef CALLBACK_API( Boolean , SGModalFilterProcPtr )(DialogPtr theDialog, const EventRecord *theEvent, short *itemHit, long refCon);
  2180. typedef STACK_UPP_TYPE(SGModalFilterProcPtr)                     SGModalFilterUPP;
  2181.  
  2182. enum {
  2183.     sgPanelFlagForPanel            = 1
  2184. };
  2185.  
  2186.  
  2187. enum {
  2188.     seqGrabSettingsPreviewOnly    = 1
  2189. };
  2190.  
  2191.  
  2192. enum {
  2193.     channelPlayNormal            = 0,
  2194.     channelPlayFast                = 1,
  2195.     channelPlayHighQuality        = 2,
  2196.     channelPlayAllData            = 4
  2197. };
  2198.  
  2199.  
  2200. EXTERN_API( ComponentResult )
  2201. SGInitialize                    (SeqGrabComponent         s)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0001, 0x7000, 0xA82A);
  2202.  
  2203. EXTERN_API( ComponentResult )
  2204. SGSetDataOutput                    (SeqGrabComponent         s,
  2205.                                  const FSSpec *            movieFile,
  2206.                                  long                     whereFlags)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0002, 0x7000, 0xA82A);
  2207.  
  2208. EXTERN_API( ComponentResult )
  2209. SGGetDataOutput                    (SeqGrabComponent         s,
  2210.                                  FSSpec *                movieFile,
  2211.                                  long *                    whereFlags)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0003, 0x7000, 0xA82A);
  2212.  
  2213. EXTERN_API( ComponentResult )
  2214. SGSetGWorld                        (SeqGrabComponent         s,
  2215.                                  CGrafPtr                 gp,
  2216.                                  GDHandle                 gd)                                    FIVEWORDINLINE(0x2F3C, 0x0008, 0x0004, 0x7000, 0xA82A);
  2217.  
  2218. EXTERN_API( ComponentResult )
  2219. SGGetGWorld                        (SeqGrabComponent         s,
  2220.                                  CGrafPtr *                gp,
  2221.                                  GDHandle *                gd)                                    FIVEWORDINLINE(0x2F3C, 0x0008, 0x0005, 0x7000, 0xA82A);
  2222.  
  2223. EXTERN_API( ComponentResult )
  2224. SGNewChannel                    (SeqGrabComponent         s,
  2225.                                  OSType                 channelType,
  2226.                                  SGChannel *            ref)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0006, 0x7000, 0xA82A);
  2227.  
  2228. EXTERN_API( ComponentResult )
  2229. SGDisposeChannel                (SeqGrabComponent         s,
  2230.                                  SGChannel                 c)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0007, 0x7000, 0xA82A);
  2231.  
  2232. EXTERN_API( ComponentResult )
  2233. SGStartPreview                    (SeqGrabComponent         s)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0010, 0x7000, 0xA82A);
  2234.  
  2235. EXTERN_API( ComponentResult )
  2236. SGStartRecord                    (SeqGrabComponent         s)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0011, 0x7000, 0xA82A);
  2237.  
  2238. EXTERN_API( ComponentResult )
  2239. SGIdle                            (SeqGrabComponent         s)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0012, 0x7000, 0xA82A);
  2240.  
  2241. EXTERN_API( ComponentResult )
  2242. SGStop                            (SeqGrabComponent         s)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0013, 0x7000, 0xA82A);
  2243.  
  2244. EXTERN_API( ComponentResult )
  2245. SGPause                            (SeqGrabComponent         s,
  2246.                                  Byte                     pause)                                FIVEWORDINLINE(0x2F3C, 0x0002, 0x0014, 0x7000, 0xA82A);
  2247.  
  2248. EXTERN_API( ComponentResult )
  2249. SGPrepare                        (SeqGrabComponent         s,
  2250.                                  Boolean                 prepareForPreview,
  2251.                                  Boolean                 prepareForRecord)                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0015, 0x7000, 0xA82A);
  2252.  
  2253. EXTERN_API( ComponentResult )
  2254. SGRelease                        (SeqGrabComponent         s)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0016, 0x7000, 0xA82A);
  2255.  
  2256. EXTERN_API( Movie )
  2257. SGGetMovie                        (SeqGrabComponent         s)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0017, 0x7000, 0xA82A);
  2258.  
  2259. EXTERN_API( ComponentResult )
  2260. SGSetMaximumRecordTime            (SeqGrabComponent         s,
  2261.                                  unsigned long             ticks)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0018, 0x7000, 0xA82A);
  2262.  
  2263. EXTERN_API( ComponentResult )
  2264. SGGetMaximumRecordTime            (SeqGrabComponent         s,
  2265.                                  unsigned long *        ticks)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0019, 0x7000, 0xA82A);
  2266.  
  2267. EXTERN_API( ComponentResult )
  2268. SGGetStorageSpaceRemaining        (SeqGrabComponent         s,
  2269.                                  unsigned long *        bytes)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x001A, 0x7000, 0xA82A);
  2270.  
  2271. EXTERN_API( ComponentResult )
  2272. SGGetTimeRemaining                (SeqGrabComponent         s,
  2273.                                  long *                    ticksLeft)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x001B, 0x7000, 0xA82A);
  2274.  
  2275. EXTERN_API( ComponentResult )
  2276. SGGrabPict                        (SeqGrabComponent         s,
  2277.                                  PicHandle *            p,
  2278.                                  const Rect *            bounds,
  2279.                                  short                     offscreenDepth,
  2280.                                  long                     grabPictFlags)                        FIVEWORDINLINE(0x2F3C, 0x000E, 0x001C, 0x7000, 0xA82A);
  2281.  
  2282. EXTERN_API( ComponentResult )
  2283. SGGetLastMovieResID                (SeqGrabComponent         s,
  2284.                                  short *                resID)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x001D, 0x7000, 0xA82A);
  2285.  
  2286. EXTERN_API( ComponentResult )
  2287. SGSetFlags                        (SeqGrabComponent         s,
  2288.                                  long                     sgFlags)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x001E, 0x7000, 0xA82A);
  2289.  
  2290. EXTERN_API( ComponentResult )
  2291. SGGetFlags                        (SeqGrabComponent         s,
  2292.                                  long *                    sgFlags)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x001F, 0x7000, 0xA82A);
  2293.  
  2294. EXTERN_API( ComponentResult )
  2295. SGSetDataProc                    (SeqGrabComponent         s,
  2296.                                  SGDataUPP                 proc,
  2297.                                  long                     refCon)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0020, 0x7000, 0xA82A);
  2298.  
  2299. EXTERN_API( ComponentResult )
  2300. SGNewChannelFromComponent        (SeqGrabComponent         s,
  2301.                                  SGChannel *            newChannel,
  2302.                                  Component                 sgChannelComponent)                    FIVEWORDINLINE(0x2F3C, 0x0008, 0x0021, 0x7000, 0xA82A);
  2303.  
  2304. EXTERN_API( ComponentResult )
  2305. SGDisposeDeviceList                (SeqGrabComponent         s,
  2306.                                  SGDeviceList             list)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0022, 0x7000, 0xA82A);
  2307.  
  2308. EXTERN_API( ComponentResult )
  2309. SGAppendDeviceListToMenu        (SeqGrabComponent         s,
  2310.                                  SGDeviceList             list,
  2311.                                  MenuHandle             mh)                                    FIVEWORDINLINE(0x2F3C, 0x0008, 0x0023, 0x7000, 0xA82A);
  2312.  
  2313. EXTERN_API( ComponentResult )
  2314. SGSetSettings                    (SeqGrabComponent         s,
  2315.                                  UserData                 ud,
  2316.                                  long                     flags)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0024, 0x7000, 0xA82A);
  2317.  
  2318. EXTERN_API( ComponentResult )
  2319. SGGetSettings                    (SeqGrabComponent         s,
  2320.                                  UserData *                ud,
  2321.                                  long                     flags)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0025, 0x7000, 0xA82A);
  2322.  
  2323. EXTERN_API( ComponentResult )
  2324. SGGetIndChannel                    (SeqGrabComponent         s,
  2325.                                  short                     index,
  2326.                                  SGChannel *            ref,
  2327.                                  OSType *                chanType)                            FIVEWORDINLINE(0x2F3C, 0x000A, 0x0026, 0x7000, 0xA82A);
  2328.  
  2329. EXTERN_API( ComponentResult )
  2330. SGUpdate                        (SeqGrabComponent         s,
  2331.                                  RgnHandle                 updateRgn)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0027, 0x7000, 0xA82A);
  2332.  
  2333. EXTERN_API( ComponentResult )
  2334. SGGetPause                        (SeqGrabComponent         s,
  2335.                                  Byte *                    paused)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0028, 0x7000, 0xA82A);
  2336.  
  2337. typedef const Component *                ConstComponentListPtr;
  2338. EXTERN_API( ComponentResult )
  2339. SGSettingsDialog                (SeqGrabComponent         s,
  2340.                                  SGChannel                 c,
  2341.                                  short                     numPanels,
  2342.                                  ConstComponentListPtr     panelList,
  2343.                                  long                     flags,
  2344.                                  SGModalFilterUPP         proc,
  2345.                                  long                     procRefNum)                            FIVEWORDINLINE(0x2F3C, 0x0016, 0x0029, 0x7000, 0xA82A);
  2346.  
  2347. EXTERN_API( ComponentResult )
  2348. SGGetAlignmentProc                (SeqGrabComponent         s,
  2349.                                  ICMAlignmentProcRecordPtr  alignmentProc)                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x002A, 0x7000, 0xA82A);
  2350.  
  2351. EXTERN_API( ComponentResult )
  2352. SGSetChannelSettings            (SeqGrabComponent         s,
  2353.                                  SGChannel                 c,
  2354.                                  UserData                 ud,
  2355.                                  long                     flags)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x002B, 0x7000, 0xA82A);
  2356.  
  2357. EXTERN_API( ComponentResult )
  2358. SGGetChannelSettings            (SeqGrabComponent         s,
  2359.                                  SGChannel                 c,
  2360.                                  UserData *                ud,
  2361.                                  long                     flags)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x002C, 0x7000, 0xA82A);
  2362.  
  2363. EXTERN_API( ComponentResult )
  2364. SGGetMode                        (SeqGrabComponent         s,
  2365.                                  Boolean *                previewMode,
  2366.                                  Boolean *                recordMode)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x002D, 0x7000, 0xA82A);
  2367.  
  2368. EXTERN_API( ComponentResult )
  2369. SGSetDataRef                    (SeqGrabComponent         s,
  2370.                                  Handle                 dataRef,
  2371.                                  OSType                 dataRefType,
  2372.                                  long                     whereFlags)                            FIVEWORDINLINE(0x2F3C, 0x000C, 0x002E, 0x7000, 0xA82A);
  2373.  
  2374. EXTERN_API( ComponentResult )
  2375. SGGetDataRef                    (SeqGrabComponent         s,
  2376.                                  Handle *                dataRef,
  2377.                                  OSType *                dataRefType,
  2378.                                  long *                    whereFlags)                            FIVEWORDINLINE(0x2F3C, 0x000C, 0x002F, 0x7000, 0xA82A);
  2379.  
  2380. EXTERN_API( ComponentResult )
  2381. SGNewOutput                        (SeqGrabComponent         s,
  2382.                                  Handle                 dataRef,
  2383.                                  OSType                 dataRefType,
  2384.                                  long                     whereFlags,
  2385.                                  SGOutput *                sgOut)                                FIVEWORDINLINE(0x2F3C, 0x0010, 0x0030, 0x7000, 0xA82A);
  2386.  
  2387. EXTERN_API( ComponentResult )
  2388. SGDisposeOutput                    (SeqGrabComponent         s,
  2389.                                  SGOutput                 sgOut)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0031, 0x7000, 0xA82A);
  2390.  
  2391. EXTERN_API( ComponentResult )
  2392. SGSetOutputFlags                (SeqGrabComponent         s,
  2393.                                  SGOutput                 sgOut,
  2394.                                  long                     whereFlags)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0032, 0x7000, 0xA82A);
  2395.  
  2396. EXTERN_API( ComponentResult )
  2397. SGSetChannelOutput                (SeqGrabComponent         s,
  2398.                                  SGChannel                 c,
  2399.                                  SGOutput                 sgOut)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0033, 0x7000, 0xA82A);
  2400.  
  2401. EXTERN_API( ComponentResult )
  2402. SGGetDataOutputStorageSpaceRemaining (SeqGrabComponent     s,
  2403.                                  SGOutput                 sgOut,
  2404.                                  unsigned long *        space)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0034, 0x7000, 0xA82A);
  2405.  
  2406. EXTERN_API( ComponentResult )
  2407. SGHandleUpdateEvent                (SeqGrabComponent         s,
  2408.                                  const EventRecord *    event,
  2409.                                  Boolean *                handled)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0035, 0x7000, 0xA82A);
  2410.  
  2411. EXTERN_API( ComponentResult )
  2412. SGSetOutputNextOutput            (SeqGrabComponent         s,
  2413.                                  SGOutput                 sgOut,
  2414.                                  SGOutput                 nextOut)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0036, 0x7000, 0xA82A);
  2415.  
  2416. EXTERN_API( ComponentResult )
  2417. SGGetOutputNextOutput            (SeqGrabComponent         s,
  2418.                                  SGOutput                 sgOut,
  2419.                                  SGOutput *                nextOut)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0037, 0x7000, 0xA82A);
  2420.  
  2421. EXTERN_API( ComponentResult )
  2422. SGSetOutputMaximumOffset        (SeqGrabComponent         s,
  2423.                                  SGOutput                 sgOut,
  2424.                                  const wide *            maxOffset)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0038, 0x7000, 0xA82A);
  2425.  
  2426. EXTERN_API( ComponentResult )
  2427. SGGetOutputMaximumOffset        (SeqGrabComponent         s,
  2428.                                  SGOutput                 sgOut,
  2429.                                  wide *                    maxOffset)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0039, 0x7000, 0xA82A);
  2430.  
  2431. EXTERN_API( ComponentResult )
  2432. SGGetOutputDataReference        (SeqGrabComponent         s,
  2433.                                  SGOutput                 sgOut,
  2434.                                  Handle *                dataRef,
  2435.                                  OSType *                dataRefType)                        FIVEWORDINLINE(0x2F3C, 0x000C, 0x003A, 0x7000, 0xA82A);
  2436.  
  2437. EXTERN_API( ComponentResult )
  2438. SGWriteExtendedMovieData        (SeqGrabComponent         s,
  2439.                                  SGChannel                 c,
  2440.                                  Ptr                     p,
  2441.                                  long                     len,
  2442.                                  wide *                    offset,
  2443.                                  SGOutput *                sgOut)                                FIVEWORDINLINE(0x2F3C, 0x0014, 0x003B, 0x7000, 0xA82A);
  2444.  
  2445. /*
  2446.     calls from Channel to seqGrab
  2447. */
  2448. EXTERN_API( ComponentResult )
  2449. SGWriteMovieData                (SeqGrabComponent         s,
  2450.                                  SGChannel                 c,
  2451.                                  Ptr                     p,
  2452.                                  long                     len,
  2453.                                  long *                    offset)                                FIVEWORDINLINE(0x2F3C, 0x0010, 0x0100, 0x7000, 0xA82A);
  2454.  
  2455. EXTERN_API( ComponentResult )
  2456. SGAddFrameReference                (SeqGrabComponent         s,
  2457.                                  SeqGrabFrameInfoPtr     frameInfo)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0101, 0x7000, 0xA82A);
  2458.  
  2459. EXTERN_API( ComponentResult )
  2460. SGGetNextFrameReference            (SeqGrabComponent         s,
  2461.                                  SeqGrabFrameInfoPtr     frameInfo,
  2462.                                  TimeValue *            frameDuration,
  2463.                                  long *                    frameNumber)                        FIVEWORDINLINE(0x2F3C, 0x000C, 0x0102, 0x7000, 0xA82A);
  2464.  
  2465. EXTERN_API( ComponentResult )
  2466. SGGetTimeBase                    (SeqGrabComponent         s,
  2467.                                  TimeBase *                tb)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0103, 0x7000, 0xA82A);
  2468.  
  2469. EXTERN_API( ComponentResult )
  2470. SGSortDeviceList                (SeqGrabComponent         s,
  2471.                                  SGDeviceList             list)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0104, 0x7000, 0xA82A);
  2472.  
  2473. EXTERN_API( ComponentResult )
  2474. SGAddMovieData                    (SeqGrabComponent         s,
  2475.                                  SGChannel                 c,
  2476.                                  Ptr                     p,
  2477.                                  long                     len,
  2478.                                  long *                    offset,
  2479.                                  long                     chRefCon,
  2480.                                  TimeValue                 time,
  2481.                                  short                     writeType)                            FIVEWORDINLINE(0x2F3C, 0x001A, 0x0105, 0x7000, 0xA82A);
  2482.  
  2483. EXTERN_API( ComponentResult )
  2484. SGChangedSource                    (SeqGrabComponent         s,
  2485.                                  SGChannel                 c)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0106, 0x7000, 0xA82A);
  2486.  
  2487. EXTERN_API( ComponentResult )
  2488. SGAddExtendedFrameReference        (SeqGrabComponent         s,
  2489.                                  SeqGrabExtendedFrameInfoPtr  frameInfo)                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0107, 0x7000, 0xA82A);
  2490.  
  2491. EXTERN_API( ComponentResult )
  2492. SGGetNextExtendedFrameReference    (SeqGrabComponent         s,
  2493.                                  SeqGrabExtendedFrameInfoPtr  frameInfo,
  2494.                                  TimeValue *            frameDuration,
  2495.                                  long *                    frameNumber)                        FIVEWORDINLINE(0x2F3C, 0x000C, 0x0108, 0x7000, 0xA82A);
  2496.  
  2497. EXTERN_API( ComponentResult )
  2498. SGAddExtendedMovieData            (SeqGrabComponent         s,
  2499.                                  SGChannel                 c,
  2500.                                  Ptr                     p,
  2501.                                  long                     len,
  2502.                                  wide *                    offset,
  2503.                                  long                     chRefCon,
  2504.                                  TimeValue                 time,
  2505.                                  short                     writeType,
  2506.                                  SGOutput *                whichOutput)                        FIVEWORDINLINE(0x2F3C, 0x001E, 0x0109, 0x7000, 0xA82A);
  2507.  
  2508. EXTERN_API( ComponentResult )
  2509. SGAddOutputDataRefToMedia        (SeqGrabComponent         s,
  2510.                                  SGOutput                 sgOut,
  2511.                                  Media                     theMedia,
  2512.                                  SampleDescriptionHandle  desc)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x010A, 0x7000, 0xA82A);
  2513.  
  2514.  
  2515.  
  2516. /*** Sequence Grab CHANNEL Component Stuff ***/
  2517.  
  2518. EXTERN_API( ComponentResult )
  2519. SGSetChannelUsage                (SGChannel                 c,
  2520.                                  long                     usage)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0080, 0x7000, 0xA82A);
  2521.  
  2522. EXTERN_API( ComponentResult )
  2523. SGGetChannelUsage                (SGChannel                 c,
  2524.                                  long *                    usage)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0081, 0x7000, 0xA82A);
  2525.  
  2526. EXTERN_API( ComponentResult )
  2527. SGSetChannelBounds                (SGChannel                 c,
  2528.                                  const Rect *            bounds)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0082, 0x7000, 0xA82A);
  2529.  
  2530. EXTERN_API( ComponentResult )
  2531. SGGetChannelBounds                (SGChannel                 c,
  2532.                                  Rect *                    bounds)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0083, 0x7000, 0xA82A);
  2533.  
  2534. EXTERN_API( ComponentResult )
  2535. SGSetChannelVolume                (SGChannel                 c,
  2536.                                  short                     volume)                                FIVEWORDINLINE(0x2F3C, 0x0002, 0x0084, 0x7000, 0xA82A);
  2537.  
  2538. EXTERN_API( ComponentResult )
  2539. SGGetChannelVolume                (SGChannel                 c,
  2540.                                  short *                volume)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0085, 0x7000, 0xA82A);
  2541.  
  2542. EXTERN_API( ComponentResult )
  2543. SGGetChannelInfo                (SGChannel                 c,
  2544.                                  long *                    channelInfo)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0086, 0x7000, 0xA82A);
  2545.  
  2546. EXTERN_API( ComponentResult )
  2547. SGSetChannelPlayFlags            (SGChannel                 c,
  2548.                                  long                     playFlags)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0087, 0x7000, 0xA82A);
  2549.  
  2550. EXTERN_API( ComponentResult )
  2551. SGGetChannelPlayFlags            (SGChannel                 c,
  2552.                                  long *                    playFlags)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0088, 0x7000, 0xA82A);
  2553.  
  2554. EXTERN_API( ComponentResult )
  2555. SGSetChannelMaxFrames            (SGChannel                 c,
  2556.                                  long                     frameCount)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0089, 0x7000, 0xA82A);
  2557.  
  2558. EXTERN_API( ComponentResult )
  2559. SGGetChannelMaxFrames            (SGChannel                 c,
  2560.                                  long *                    frameCount)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x008A, 0x7000, 0xA82A);
  2561.  
  2562. EXTERN_API( ComponentResult )
  2563. SGSetChannelRefCon                (SGChannel                 c,
  2564.                                  long                     refCon)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x008B, 0x7000, 0xA82A);
  2565.  
  2566. EXTERN_API( ComponentResult )
  2567. SGSetChannelClip                (SGChannel                 c,
  2568.                                  RgnHandle                 theClip)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x008C, 0x7000, 0xA82A);
  2569.  
  2570. EXTERN_API( ComponentResult )
  2571. SGGetChannelClip                (SGChannel                 c,
  2572.                                  RgnHandle *            theClip)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x008D, 0x7000, 0xA82A);
  2573.  
  2574. EXTERN_API( ComponentResult )
  2575. SGGetChannelSampleDescription    (SGChannel                 c,
  2576.                                  Handle                 sampleDesc)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x008E, 0x7000, 0xA82A);
  2577.  
  2578. EXTERN_API( ComponentResult )
  2579. SGGetChannelDeviceList            (SGChannel                 c,
  2580.                                  long                     selectionFlags,
  2581.                                  SGDeviceList *            list)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x008F, 0x7000, 0xA82A);
  2582.  
  2583. EXTERN_API( ComponentResult )
  2584. SGSetChannelDevice                (SGChannel                 c,
  2585.                                  StringPtr                 name)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0090, 0x7000, 0xA82A);
  2586.  
  2587. EXTERN_API( ComponentResult )
  2588. SGSetChannelMatrix                (SGChannel                 c,
  2589.                                  const MatrixRecord *    m)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0091, 0x7000, 0xA82A);
  2590.  
  2591. EXTERN_API( ComponentResult )
  2592. SGGetChannelMatrix                (SGChannel                 c,
  2593.                                  MatrixRecord *            m)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0092, 0x7000, 0xA82A);
  2594.  
  2595. EXTERN_API( ComponentResult )
  2596. SGGetChannelTimeScale            (SGChannel                 c,
  2597.                                  TimeScale *            scale)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0093, 0x7000, 0xA82A);
  2598.  
  2599. EXTERN_API( ComponentResult )
  2600. SGChannelPutPicture                (SGChannel                 c)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0094, 0x7000, 0xA82A);
  2601.  
  2602. EXTERN_API( ComponentResult )
  2603. SGChannelSetRequestedDataRate    (SGChannel                 c,
  2604.                                  long                     bytesPerSecond)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0095, 0x7000, 0xA82A);
  2605.  
  2606. EXTERN_API( ComponentResult )
  2607. SGChannelGetRequestedDataRate    (SGChannel                 c,
  2608.                                  long *                    bytesPerSecond)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0096, 0x7000, 0xA82A);
  2609.  
  2610. EXTERN_API( ComponentResult )
  2611. SGChannelSetDataSourceName        (SGChannel                 c,
  2612.                                  ConstStr255Param         name,
  2613.                                  ScriptCode             scriptTag)                            FIVEWORDINLINE(0x2F3C, 0x0006, 0x0097, 0x7000, 0xA82A);
  2614.  
  2615. EXTERN_API( ComponentResult )
  2616. SGChannelGetDataSourceName        (SGChannel                 c,
  2617.                                  Str255                 name,
  2618.                                  ScriptCode *            scriptTag)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0098, 0x7000, 0xA82A);
  2619.  
  2620. /*
  2621.     calls from seqGrab to Channel
  2622. */
  2623. EXTERN_API( ComponentResult )
  2624. SGInitChannel                    (SGChannel                 c,
  2625.                                  SeqGrabComponent         owner)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0180, 0x7000, 0xA82A);
  2626.  
  2627. EXTERN_API( ComponentResult )
  2628. SGWriteSamples                    (SGChannel                 c,
  2629.                                  Movie                     m,
  2630.                                  AliasHandle             theFile)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0181, 0x7000, 0xA82A);
  2631.  
  2632. EXTERN_API( ComponentResult )
  2633. SGGetDataRate                    (SGChannel                 c,
  2634.                                  long *                    bytesPerSecond)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0182, 0x7000, 0xA82A);
  2635.  
  2636. EXTERN_API( ComponentResult )
  2637. SGAlignChannelRect                (SGChannel                 c,
  2638.                                  Rect *                    r)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0183, 0x7000, 0xA82A);
  2639.  
  2640. /*
  2641.     Dorky dialog panel calls
  2642. */
  2643. EXTERN_API( ComponentResult )
  2644. SGPanelGetDitl                    (SeqGrabComponent         s,
  2645.                                  Handle *                ditl)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0200, 0x7000, 0xA82A);
  2646.  
  2647. EXTERN_API( ComponentResult )
  2648. SGPanelGetTitle                    (SeqGrabComponent         s,
  2649.                                  Str255                 title)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0201, 0x7000, 0xA82A);
  2650.  
  2651. EXTERN_API( ComponentResult )
  2652. SGPanelCanRun                    (SeqGrabComponent         s,
  2653.                                  SGChannel                 c)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0202, 0x7000, 0xA82A);
  2654.  
  2655. EXTERN_API( ComponentResult )
  2656. SGPanelInstall                    (SeqGrabComponent         s,
  2657.                                  SGChannel                 c,
  2658.                                  DialogPtr                 d,
  2659.                                  short                     itemOffset)                            FIVEWORDINLINE(0x2F3C, 0x000A, 0x0203, 0x7000, 0xA82A);
  2660.  
  2661. EXTERN_API( ComponentResult )
  2662. SGPanelEvent                    (SeqGrabComponent         s,
  2663.                                  SGChannel                 c,
  2664.                                  DialogPtr                 d,
  2665.                                  short                     itemOffset,
  2666.                                  const EventRecord *    theEvent,
  2667.                                  short *                itemHit,
  2668.                                  Boolean *                handled)                            FIVEWORDINLINE(0x2F3C, 0x0016, 0x0204, 0x7000, 0xA82A);
  2669.  
  2670. EXTERN_API( ComponentResult )
  2671. SGPanelItem                        (SeqGrabComponent         s,
  2672.                                  SGChannel                 c,
  2673.                                  DialogPtr                 d,
  2674.                                  short                     itemOffset,
  2675.                                  short                     itemNum)                            FIVEWORDINLINE(0x2F3C, 0x000C, 0x0205, 0x7000, 0xA82A);
  2676.  
  2677. EXTERN_API( ComponentResult )
  2678. SGPanelRemove                    (SeqGrabComponent         s,
  2679.                                  SGChannel                 c,
  2680.                                  DialogPtr                 d,
  2681.                                  short                     itemOffset)                            FIVEWORDINLINE(0x2F3C, 0x000A, 0x0206, 0x7000, 0xA82A);
  2682.  
  2683. EXTERN_API( ComponentResult )
  2684. SGPanelSetGrabber                (SeqGrabComponent         s,
  2685.                                  SeqGrabComponent         sg)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0207, 0x7000, 0xA82A);
  2686.  
  2687. EXTERN_API( ComponentResult )
  2688. SGPanelSetResFile                (SeqGrabComponent         s,
  2689.                                  short                     resRef)                                FIVEWORDINLINE(0x2F3C, 0x0002, 0x0208, 0x7000, 0xA82A);
  2690.  
  2691. EXTERN_API( ComponentResult )
  2692. SGPanelGetSettings                (SeqGrabComponent         s,
  2693.                                  SGChannel                 c,
  2694.                                  UserData *                ud,
  2695.                                  long                     flags)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x0209, 0x7000, 0xA82A);
  2696.  
  2697. EXTERN_API( ComponentResult )
  2698. SGPanelSetSettings                (SeqGrabComponent         s,
  2699.                                  SGChannel                 c,
  2700.                                  UserData                 ud,
  2701.                                  long                     flags)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x020A, 0x7000, 0xA82A);
  2702.  
  2703. EXTERN_API( ComponentResult )
  2704. SGPanelValidateInput            (SeqGrabComponent         s,
  2705.                                  Boolean *                ok)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x020B, 0x7000, 0xA82A);
  2706.  
  2707. EXTERN_API( ComponentResult )
  2708. SGPanelSetEventFilter            (SeqGrabComponent         s,
  2709.                                  SGModalFilterUPP         proc,
  2710.                                  long                     refCon)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x020C, 0x7000, 0xA82A);
  2711.  
  2712.  
  2713. /*** Sequence Grab VIDEO CHANNEL Component Stuff ***/
  2714. /*
  2715.     Video stuff
  2716. */
  2717.  
  2718. struct SGCompressInfo {
  2719.     Ptr                             buffer;
  2720.     unsigned long                     bufferSize;
  2721.     UInt8                             similarity;
  2722.     UInt8                             reserved;
  2723. };
  2724. typedef struct SGCompressInfo            SGCompressInfo;
  2725. typedef CALLBACK_API( ComponentResult , SGGrabBottleProcPtr )(SGChannel c, short bufferNum, long refCon);
  2726. typedef CALLBACK_API( ComponentResult , SGGrabCompleteBottleProcPtr )(SGChannel c, short bufferNum, Boolean *done, long refCon);
  2727. typedef CALLBACK_API( ComponentResult , SGDisplayBottleProcPtr )(SGChannel c, short bufferNum, MatrixRecord *mp, RgnHandle clipRgn, long refCon);
  2728. typedef CALLBACK_API( ComponentResult , SGCompressBottleProcPtr )(SGChannel c, short bufferNum, long refCon);
  2729. typedef CALLBACK_API( ComponentResult , SGCompressCompleteBottleProcPtr )(SGChannel c, short bufferNum, Boolean *done, SGCompressInfo *ci, long refCon);
  2730. typedef CALLBACK_API( ComponentResult , SGAddFrameBottleProcPtr )(SGChannel c, short bufferNum, TimeValue atTime, TimeScale scale, const SGCompressInfo *ci, long refCon);
  2731. typedef CALLBACK_API( ComponentResult , SGTransferFrameBottleProcPtr )(SGChannel c, short bufferNum, MatrixRecord *mp, RgnHandle clipRgn, long refCon);
  2732. typedef CALLBACK_API( ComponentResult , SGGrabCompressCompleteBottleProcPtr )(SGChannel c, Boolean *done, SGCompressInfo *ci, TimeRecord *t, long refCon);
  2733. typedef CALLBACK_API( ComponentResult , SGDisplayCompressBottleProcPtr )(SGChannel c, Ptr dataPtr, ImageDescriptionHandle desc, MatrixRecord *mp, RgnHandle clipRgn, long refCon);
  2734. typedef STACK_UPP_TYPE(SGGrabBottleProcPtr)                     SGGrabBottleUPP;
  2735. typedef STACK_UPP_TYPE(SGGrabCompleteBottleProcPtr)             SGGrabCompleteBottleUPP;
  2736. typedef STACK_UPP_TYPE(SGDisplayBottleProcPtr)                     SGDisplayBottleUPP;
  2737. typedef STACK_UPP_TYPE(SGCompressBottleProcPtr)                 SGCompressBottleUPP;
  2738. typedef STACK_UPP_TYPE(SGCompressCompleteBottleProcPtr)         SGCompressCompleteBottleUPP;
  2739. typedef STACK_UPP_TYPE(SGAddFrameBottleProcPtr)                 SGAddFrameBottleUPP;
  2740. typedef STACK_UPP_TYPE(SGTransferFrameBottleProcPtr)             SGTransferFrameBottleUPP;
  2741. typedef STACK_UPP_TYPE(SGGrabCompressCompleteBottleProcPtr)     SGGrabCompressCompleteBottleUPP;
  2742. typedef STACK_UPP_TYPE(SGDisplayCompressBottleProcPtr)             SGDisplayCompressBottleUPP;
  2743.  
  2744. struct VideoBottles {
  2745.     short                             procCount;
  2746.     SGGrabBottleUPP                 grabProc;
  2747.     SGGrabCompleteBottleUPP         grabCompleteProc;
  2748.     SGDisplayBottleUPP                 displayProc;
  2749.     SGCompressBottleUPP             compressProc;
  2750.     SGCompressCompleteBottleUPP     compressCompleteProc;
  2751.     SGAddFrameBottleUPP             addFrameProc;
  2752.     SGTransferFrameBottleUPP         transferFrameProc;
  2753.     SGGrabCompressCompleteBottleUPP  grabCompressCompleteProc;
  2754.     SGDisplayCompressBottleUPP         displayCompressProc;
  2755. };
  2756. typedef struct VideoBottles                VideoBottles;
  2757. EXTERN_API( ComponentResult )
  2758. SGGetSrcVideoBounds                (SGChannel                 c,
  2759.                                  Rect *                    r)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0100, 0x7000, 0xA82A);
  2760.  
  2761. EXTERN_API( ComponentResult )
  2762. SGSetVideoRect                    (SGChannel                 c,
  2763.                                  const Rect *            r)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0101, 0x7000, 0xA82A);
  2764.  
  2765. EXTERN_API( ComponentResult )
  2766. SGGetVideoRect                    (SGChannel                 c,
  2767.                                  Rect *                    r)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0102, 0x7000, 0xA82A);
  2768.  
  2769. EXTERN_API( ComponentResult )
  2770. SGGetVideoCompressorType        (SGChannel                 c,
  2771.                                  OSType *                compressorType)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0103, 0x7000, 0xA82A);
  2772.  
  2773. EXTERN_API( ComponentResult )
  2774. SGSetVideoCompressorType        (SGChannel                 c,
  2775.                                  OSType                 compressorType)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0104, 0x7000, 0xA82A);
  2776.  
  2777. EXTERN_API( ComponentResult )
  2778. SGSetVideoCompressor            (SGChannel                 c,
  2779.                                  short                     depth,
  2780.                                  CompressorComponent     compressor,
  2781.                                  CodecQ                 spatialQuality,
  2782.                                  CodecQ                 temporalQuality,
  2783.                                  long                     keyFrameRate)                        FIVEWORDINLINE(0x2F3C, 0x0012, 0x0105, 0x7000, 0xA82A);
  2784.  
  2785. EXTERN_API( ComponentResult )
  2786. SGGetVideoCompressor            (SGChannel                 c,
  2787.                                  short *                depth,
  2788.                                  CompressorComponent *    compressor,
  2789.                                  CodecQ *                spatialQuality,
  2790.                                  CodecQ *                temporalQuality,
  2791.                                  long *                    keyFrameRate)                        FIVEWORDINLINE(0x2F3C, 0x0014, 0x0106, 0x7000, 0xA82A);
  2792.  
  2793. EXTERN_API( ComponentInstance )
  2794. SGGetVideoDigitizerComponent    (SGChannel                 c)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0107, 0x7000, 0xA82A);
  2795.  
  2796. EXTERN_API( ComponentResult )
  2797. SGSetVideoDigitizerComponent    (SGChannel                 c,
  2798.                                  ComponentInstance         vdig)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0108, 0x7000, 0xA82A);
  2799.  
  2800. EXTERN_API( ComponentResult )
  2801. SGVideoDigitizerChanged            (SGChannel                 c)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0109, 0x7000, 0xA82A);
  2802.  
  2803. EXTERN_API( ComponentResult )
  2804. SGSetVideoBottlenecks            (SGChannel                 c,
  2805.                                  VideoBottles *            vb)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x010A, 0x7000, 0xA82A);
  2806.  
  2807. EXTERN_API( ComponentResult )
  2808. SGGetVideoBottlenecks            (SGChannel                 c,
  2809.                                  VideoBottles *            vb)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x010B, 0x7000, 0xA82A);
  2810.  
  2811. EXTERN_API( ComponentResult )
  2812. SGGrabFrame                        (SGChannel                 c,
  2813.                                  short                     bufferNum)                            FIVEWORDINLINE(0x2F3C, 0x0002, 0x010C, 0x7000, 0xA82A);
  2814.  
  2815. EXTERN_API( ComponentResult )
  2816. SGGrabFrameComplete                (SGChannel                 c,
  2817.                                  short                     bufferNum,
  2818.                                  Boolean *                done)                                FIVEWORDINLINE(0x2F3C, 0x0006, 0x010D, 0x7000, 0xA82A);
  2819.  
  2820. EXTERN_API( ComponentResult )
  2821. SGDisplayFrame                    (SGChannel                 c,
  2822.                                  short                     bufferNum,
  2823.                                  const MatrixRecord *    mp,
  2824.                                  RgnHandle                 clipRgn)                            FIVEWORDINLINE(0x2F3C, 0x000A, 0x010E, 0x7000, 0xA82A);
  2825.  
  2826. EXTERN_API( ComponentResult )
  2827. SGCompressFrame                    (SGChannel                 c,
  2828.                                  short                     bufferNum)                            FIVEWORDINLINE(0x2F3C, 0x0002, 0x010F, 0x7000, 0xA82A);
  2829.  
  2830. EXTERN_API( ComponentResult )
  2831. SGCompressFrameComplete            (SGChannel                 c,
  2832.                                  short                     bufferNum,
  2833.                                  Boolean *                done,
  2834.                                  SGCompressInfo *        ci)                                    FIVEWORDINLINE(0x2F3C, 0x000A, 0x0110, 0x7000, 0xA82A);
  2835.  
  2836. EXTERN_API( ComponentResult )
  2837. SGAddFrame                        (SGChannel                 c,
  2838.                                  short                     bufferNum,
  2839.                                  TimeValue                 atTime,
  2840.                                  TimeScale                 scale,
  2841.                                  const SGCompressInfo *    ci)                                    FIVEWORDINLINE(0x2F3C, 0x000E, 0x0111, 0x7000, 0xA82A);
  2842.  
  2843. EXTERN_API( ComponentResult )
  2844. SGTransferFrameForCompress        (SGChannel                 c,
  2845.                                  short                     bufferNum,
  2846.                                  const MatrixRecord *    mp,
  2847.                                  RgnHandle                 clipRgn)                            FIVEWORDINLINE(0x2F3C, 0x000A, 0x0112, 0x7000, 0xA82A);
  2848.  
  2849. EXTERN_API( ComponentResult )
  2850. SGSetCompressBuffer                (SGChannel                 c,
  2851.                                  short                     depth,
  2852.                                  const Rect *            compressSize)                        FIVEWORDINLINE(0x2F3C, 0x0006, 0x0113, 0x7000, 0xA82A);
  2853.  
  2854. EXTERN_API( ComponentResult )
  2855. SGGetCompressBuffer                (SGChannel                 c,
  2856.                                  short *                depth,
  2857.                                  Rect *                    compressSize)                        FIVEWORDINLINE(0x2F3C, 0x0008, 0x0114, 0x7000, 0xA82A);
  2858.  
  2859. EXTERN_API( ComponentResult )
  2860. SGGetBufferInfo                    (SGChannel                 c,
  2861.                                  short                     bufferNum,
  2862.                                  PixMapHandle *            bufferPM,
  2863.                                  Rect *                    bufferRect,
  2864.                                  GWorldPtr *            compressBuffer,
  2865.                                  Rect *                    compressBufferRect)                    FIVEWORDINLINE(0x2F3C, 0x0012, 0x0115, 0x7000, 0xA82A);
  2866.  
  2867. EXTERN_API( ComponentResult )
  2868. SGSetUseScreenBuffer            (SGChannel                 c,
  2869.                                  Boolean                 useScreenBuffer)                    FIVEWORDINLINE(0x2F3C, 0x0002, 0x0116, 0x7000, 0xA82A);
  2870.  
  2871. EXTERN_API( ComponentResult )
  2872. SGGetUseScreenBuffer            (SGChannel                 c,
  2873.                                  Boolean *                useScreenBuffer)                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0117, 0x7000, 0xA82A);
  2874.  
  2875. EXTERN_API( ComponentResult )
  2876. SGGrabCompressComplete            (SGChannel                 c,
  2877.                                  Boolean *                done,
  2878.                                  SGCompressInfo *        ci,
  2879.                                  TimeRecord *            tr)                                    FIVEWORDINLINE(0x2F3C, 0x000C, 0x0118, 0x7000, 0xA82A);
  2880.  
  2881. EXTERN_API( ComponentResult )
  2882. SGDisplayCompress                (SGChannel                 c,
  2883.                                  Ptr                     dataPtr,
  2884.                                  ImageDescriptionHandle  desc,
  2885.                                  MatrixRecord *            mp,
  2886.                                  RgnHandle                 clipRgn)                            FIVEWORDINLINE(0x2F3C, 0x0010, 0x0119, 0x7000, 0xA82A);
  2887.  
  2888. EXTERN_API( ComponentResult )
  2889. SGSetFrameRate                    (SGChannel                 c,
  2890.                                  Fixed                     frameRate)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x011A, 0x7000, 0xA82A);
  2891.  
  2892. EXTERN_API( ComponentResult )
  2893. SGGetFrameRate                    (SGChannel                 c,
  2894.                                  Fixed *                frameRate)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x011B, 0x7000, 0xA82A);
  2895.  
  2896.  
  2897. EXTERN_API( ComponentResult )
  2898. SGSetPreferredPacketSize        (SGChannel                 c,
  2899.                                  long                     preferredPacketSizeInBytes)            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0121, 0x7000, 0xA82A);
  2900.  
  2901. EXTERN_API( ComponentResult )
  2902. SGGetPreferredPacketSize        (SGChannel                 c,
  2903.                                  long *                    preferredPacketSizeInBytes)            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0122, 0x7000, 0xA82A);
  2904.  
  2905. EXTERN_API( ComponentResult )
  2906. SGSetUserVideoCompressorList    (SGChannel                 c,
  2907.                                  Handle                 compressorTypes)                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0123, 0x7000, 0xA82A);
  2908.  
  2909. EXTERN_API( ComponentResult )
  2910. SGGetUserVideoCompressorList    (SGChannel                 c,
  2911.                                  Handle *                compressorTypes)                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0124, 0x7000, 0xA82A);
  2912.  
  2913. /*** Sequence Grab SOUND CHANNEL Component Stuff ***/
  2914.  
  2915. /*
  2916.     Sound stuff
  2917. */
  2918. EXTERN_API( ComponentResult )
  2919. SGSetSoundInputDriver            (SGChannel                 c,
  2920.                                  ConstStr255Param         driverName)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0100, 0x7000, 0xA82A);
  2921.  
  2922. EXTERN_API( long )
  2923. SGGetSoundInputDriver            (SGChannel                 c)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0101, 0x7000, 0xA82A);
  2924.  
  2925. EXTERN_API( ComponentResult )
  2926. SGSoundInputDriverChanged        (SGChannel                 c)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0102, 0x7000, 0xA82A);
  2927.  
  2928. EXTERN_API( ComponentResult )
  2929. SGSetSoundRecordChunkSize        (SGChannel                 c,
  2930.                                  long                     seconds)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0103, 0x7000, 0xA82A);
  2931.  
  2932. EXTERN_API( long )
  2933. SGGetSoundRecordChunkSize        (SGChannel                 c)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0104, 0x7000, 0xA82A);
  2934.  
  2935. EXTERN_API( ComponentResult )
  2936. SGSetSoundInputRate                (SGChannel                 c,
  2937.                                  Fixed                     rate)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0105, 0x7000, 0xA82A);
  2938.  
  2939. EXTERN_API( Fixed )
  2940. SGGetSoundInputRate                (SGChannel                 c)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0106, 0x7000, 0xA82A);
  2941.  
  2942. EXTERN_API( ComponentResult )
  2943. SGSetSoundInputParameters        (SGChannel                 c,
  2944.                                  short                     sampleSize,
  2945.                                  short                     numChannels,
  2946.                                  OSType                 compressionType)                    FIVEWORDINLINE(0x2F3C, 0x0008, 0x0107, 0x7000, 0xA82A);
  2947.  
  2948. EXTERN_API( ComponentResult )
  2949. SGGetSoundInputParameters        (SGChannel                 c,
  2950.                                  short *                sampleSize,
  2951.                                  short *                numChannels,
  2952.                                  OSType *                compressionType)                    FIVEWORDINLINE(0x2F3C, 0x000C, 0x0108, 0x7000, 0xA82A);
  2953.  
  2954. EXTERN_API( ComponentResult )
  2955. SGSetAdditionalSoundRates        (SGChannel                 c,
  2956.                                  Handle                 rates)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0109, 0x7000, 0xA82A);
  2957.  
  2958. EXTERN_API( ComponentResult )
  2959. SGGetAdditionalSoundRates        (SGChannel                 c,
  2960.                                  Handle *                rates)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x010A, 0x7000, 0xA82A);
  2961.  
  2962. /*
  2963.     Text stuff
  2964. */
  2965. EXTERN_API( ComponentResult )
  2966. SGSetFontName                    (SGChannel                 c,
  2967.                                  StringPtr                 pstr)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0100, 0x7000, 0xA82A);
  2968.  
  2969. EXTERN_API( ComponentResult )
  2970. SGSetFontSize                    (SGChannel                 c,
  2971.                                  short                     fontSize)                            FIVEWORDINLINE(0x2F3C, 0x0002, 0x0101, 0x7000, 0xA82A);
  2972.  
  2973. EXTERN_API( ComponentResult )
  2974. SGSetTextForeColor                (SGChannel                 c,
  2975.                                  RGBColor *                theColor)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0102, 0x7000, 0xA82A);
  2976.  
  2977. EXTERN_API( ComponentResult )
  2978. SGSetTextBackColor                (SGChannel                 c,
  2979.                                  RGBColor *                theColor)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0103, 0x7000, 0xA82A);
  2980.  
  2981. EXTERN_API( ComponentResult )
  2982. SGSetJustification                (SGChannel                 c,
  2983.                                  short                     just)                                FIVEWORDINLINE(0x2F3C, 0x0002, 0x0104, 0x7000, 0xA82A);
  2984.  
  2985. EXTERN_API( ComponentResult )
  2986. SGGetTextReturnToSpaceValue        (SGChannel                 c,
  2987.                                  short *                rettospace)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0105, 0x7000, 0xA82A);
  2988.  
  2989. EXTERN_API( ComponentResult )
  2990. SGSetTextReturnToSpaceValue        (SGChannel                 c,
  2991.                                  short                     rettospace)                            FIVEWORDINLINE(0x2F3C, 0x0002, 0x0106, 0x7000, 0xA82A);
  2992.  
  2993. /*
  2994.     Music stuff
  2995. */
  2996. EXTERN_API( ComponentResult )
  2997. SGGetInstrument                    (SGChannel                 c,
  2998.                                  ToneDescription *        td)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0100, 0x7000, 0xA82A);
  2999.  
  3000. EXTERN_API( ComponentResult )
  3001. SGSetInstrument                    (SGChannel                 c,
  3002.                                  ToneDescription *        td)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0101, 0x7000, 0xA82A);
  3003.  
  3004.  
  3005.  
  3006. enum {
  3007.     sgChannelAtom                = FOUR_CHAR_CODE('chan'),
  3008.     sgChannelSettingsAtom        = FOUR_CHAR_CODE('ctom'),
  3009.     sgChannelDescription        = FOUR_CHAR_CODE('cdsc'),
  3010.     sgChannelSettings            = FOUR_CHAR_CODE('cset')
  3011. };
  3012.  
  3013.  
  3014. enum {
  3015.     sgDeviceNameType            = FOUR_CHAR_CODE('name'),
  3016.     sgUsageType                    = FOUR_CHAR_CODE('use '),
  3017.     sgPlayFlagsType                = FOUR_CHAR_CODE('plyf'),
  3018.     sgClipType                    = FOUR_CHAR_CODE('clip'),
  3019.     sgMatrixType                = FOUR_CHAR_CODE('mtrx'),
  3020.     sgVolumeType                = FOUR_CHAR_CODE('volu')
  3021. };
  3022.  
  3023.  
  3024. enum {
  3025.     sgPanelSettingsAtom            = FOUR_CHAR_CODE('ptom'),
  3026.     sgPanelDescription            = FOUR_CHAR_CODE('pdsc'),
  3027.     sgPanelSettings                = FOUR_CHAR_CODE('pset')
  3028. };
  3029.  
  3030.  
  3031. enum {
  3032.     sgcSoundCompressionType        = FOUR_CHAR_CODE('scmp'),
  3033.     sgcSoundSampleRateType        = FOUR_CHAR_CODE('srat'),
  3034.     sgcSoundChannelCountType    = FOUR_CHAR_CODE('schn'),
  3035.     sgcSoundSampleSizeType        = FOUR_CHAR_CODE('ssiz'),
  3036.     sgcSoundInputType            = FOUR_CHAR_CODE('sinp'),
  3037.     sgcSoundGainType            = FOUR_CHAR_CODE('gain')
  3038. };
  3039.  
  3040.  
  3041. enum {
  3042.     sgcVideoHueType                = FOUR_CHAR_CODE('hue '),
  3043.     sgcVideoSaturationType        = FOUR_CHAR_CODE('satr'),
  3044.     sgcVideoContrastType        = FOUR_CHAR_CODE('trst'),
  3045.     sgcVideoSharpnessType        = FOUR_CHAR_CODE('shrp'),
  3046.     sgcVideoBrigtnessType        = FOUR_CHAR_CODE('brit'),
  3047.     sgcVideoBlackLevelType        = FOUR_CHAR_CODE('blkl'),
  3048.     sgcVideoWhiteLevelType        = FOUR_CHAR_CODE('whtl'),
  3049.     sgcVideoInputType            = FOUR_CHAR_CODE('vinp'),
  3050.     sgcVideoFormatType            = FOUR_CHAR_CODE('vstd'),
  3051.     sgcVideoFilterType            = FOUR_CHAR_CODE('vflt'),
  3052.     sgcVideoRectType            = FOUR_CHAR_CODE('vrct'),
  3053.     sgcVideoDigitizerType        = FOUR_CHAR_CODE('vdig')
  3054. };
  3055.  
  3056.  
  3057.  
  3058.  
  3059.  
  3060. typedef ComponentInstance                 QTVideoOutputComponent;
  3061. /* Component type and subtype enumerations*/
  3062.  
  3063. enum {
  3064.     QTVideoOutputComponentType    = FOUR_CHAR_CODE('vout'),
  3065.     QTVideoOutputComponentBaseSubType = FOUR_CHAR_CODE('base')
  3066. };
  3067.  
  3068.  
  3069. /* QTVideoOutput Component flags*/
  3070.  
  3071.  
  3072. enum {
  3073.     kQTVideoOutputDontDisplayToUser = 1L << 0
  3074. };
  3075.  
  3076. /* Display mode atom types*/
  3077.  
  3078.  
  3079. enum {
  3080.     kQTVODisplayModeItem        = FOUR_CHAR_CODE('qdmi'),
  3081.     kQTVODimensions                = FOUR_CHAR_CODE('dimn'),        /* atom contains two longs - pixel count - width, height*/
  3082.     kQTVOResolution                = FOUR_CHAR_CODE('resl'),        /* atom contains two Fixed - hRes, vRes in dpi*/
  3083.     kQTVORefreshRate            = FOUR_CHAR_CODE('refr'),        /* atom contains one Fixed - refresh rate in Hz*/
  3084.     kQTVOPixelType                = FOUR_CHAR_CODE('pixl'),        /* atom contains one OSType - pixel format of mode*/
  3085.     kQTVOName                    = FOUR_CHAR_CODE('name'),        /* atom contains string (no length byte) - name of modefor display to user*/
  3086.     kQTVODecompressors            = FOUR_CHAR_CODE('deco'),        /* atom contains other atoms indicating supported decompressors*/
  3087.                                                                 /* kQTVODecompressors sub-atoms*/
  3088.     kQTVODecompressorType        = FOUR_CHAR_CODE('dety'),        /* atom contains one OSType - decompressor type code*/
  3089.     kQTVODecompressorContinuous    = FOUR_CHAR_CODE('cont'),        /* atom contains one Boolean - true if this type is displayed continuously*/
  3090.     kQTVODecompressorComponent    = FOUR_CHAR_CODE('cmpt')        /* atom contains one Component - component id of decompressor*/
  3091. };
  3092.  
  3093. EXTERN_API( ComponentResult )
  3094. QTVideoOutputGetDisplayModeList    (QTVideoOutputComponent  vo,
  3095.                                  QTAtomContainer *        outputs)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0001, 0x7000, 0xA82A);
  3096.  
  3097. EXTERN_API( ComponentResult )
  3098. QTVideoOutputGetCurrentClientName (QTVideoOutputComponent  vo,
  3099.                                  Str255                 str)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0002, 0x7000, 0xA82A);
  3100.  
  3101. EXTERN_API( ComponentResult )
  3102. QTVideoOutputSetClientName        (QTVideoOutputComponent  vo,
  3103.                                  ConstStr255Param         str)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0003, 0x7000, 0xA82A);
  3104.  
  3105. EXTERN_API( ComponentResult )
  3106. QTVideoOutputGetClientName        (QTVideoOutputComponent  vo,
  3107.                                  Str255                 str)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0004, 0x7000, 0xA82A);
  3108.  
  3109. EXTERN_API( ComponentResult )
  3110. QTVideoOutputBegin                (QTVideoOutputComponent  vo)                                FIVEWORDINLINE(0x2F3C, 0x0000, 0x0005, 0x7000, 0xA82A);
  3111.  
  3112. EXTERN_API( ComponentResult )
  3113. QTVideoOutputEnd                (QTVideoOutputComponent  vo)                                FIVEWORDINLINE(0x2F3C, 0x0000, 0x0006, 0x7000, 0xA82A);
  3114.  
  3115. EXTERN_API( ComponentResult )
  3116. QTVideoOutputSetDisplayMode        (QTVideoOutputComponent  vo,
  3117.                                  long                     displayModeID)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0007, 0x7000, 0xA82A);
  3118.  
  3119. EXTERN_API( ComponentResult )
  3120. QTVideoOutputGetDisplayMode        (QTVideoOutputComponent  vo,
  3121.                                  long *                    displayModeID)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0008, 0x7000, 0xA82A);
  3122.  
  3123. EXTERN_API( ComponentResult )
  3124. QTVideoOutputCustomConfigureDisplay (QTVideoOutputComponent  vo,
  3125.                                  ModalFilterUPP         filter)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0009, 0x7000, 0xA82A);
  3126.  
  3127. EXTERN_API( ComponentResult )
  3128. QTVideoOutputSaveState            (QTVideoOutputComponent  vo,
  3129.                                  QTAtomContainer *        state)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x000A, 0x7000, 0xA82A);
  3130.  
  3131. EXTERN_API( ComponentResult )
  3132. QTVideoOutputRestoreState        (QTVideoOutputComponent  vo,
  3133.                                  QTAtomContainer         state)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x000B, 0x7000, 0xA82A);
  3134.  
  3135. EXTERN_API( ComponentResult )
  3136. QTVideoOutputGetGWorld            (QTVideoOutputComponent  vo,
  3137.                                  GWorldPtr *            gw)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x000C, 0x7000, 0xA82A);
  3138.  
  3139. EXTERN_API( ComponentResult )
  3140. QTVideoOutputGetGWorldParameters (QTVideoOutputComponent  vo,
  3141.                                  Ptr *                    baseAddr,
  3142.                                  long *                    rowBytes,
  3143.                                  CTabHandle *            colorTable)                            FIVEWORDINLINE(0x2F3C, 0x000C, 0x000D, 0x7000, 0xA82A);
  3144.  
  3145. EXTERN_API( ComponentResult )
  3146. QTVideoOutputGetIndSoundOutput    (QTVideoOutputComponent  vo,
  3147.                                  long                     index,
  3148.                                  Component *            outputComponent)                    FIVEWORDINLINE(0x2F3C, 0x0008, 0x000E, 0x7000, 0xA82A);
  3149.  
  3150. EXTERN_API( ComponentResult )
  3151. QTVideoOutputGetClock            (QTVideoOutputComponent  vo,
  3152.                                  ComponentInstance *    clock)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x000F, 0x7000, 0xA82A);
  3153.  
  3154. EXTERN_API( ComponentResult )
  3155. QTVideoOutputSetEchoPort        (QTVideoOutputComponent  vo,
  3156.                                  CGrafPtr                 echoPort)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0010, 0x7000, 0xA82A);
  3157.  
  3158. /* UPP call backs */
  3159. enum { uppDataHCompletionProcInfo = 0x00000BC0 };                 /* pascal no_return_value Func(4_bytes, 4_bytes, 2_bytes) */
  3160. enum { uppVdigIntProcInfo = 0x000003C0 };                         /* pascal no_return_value Func(4_bytes, 4_bytes) */
  3161. enum { uppSGDataProcInfo = 0x003BFFE0 };                         /* pascal 2_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes, 2_bytes, 4_bytes) */
  3162. enum { uppSGModalFilterProcInfo = 0x00003FD0 };                 /* pascal 1_byte Func(4_bytes, 4_bytes, 4_bytes, 4_bytes) */
  3163. enum { uppSGGrabBottleProcInfo = 0x00000EF0 };                     /* pascal 4_bytes Func(4_bytes, 2_bytes, 4_bytes) */
  3164. enum { uppSGGrabCompleteBottleProcInfo = 0x00003EF0 };             /* pascal 4_bytes Func(4_bytes, 2_bytes, 4_bytes, 4_bytes) */
  3165. enum { uppSGDisplayBottleProcInfo = 0x0000FEF0 };                 /* pascal 4_bytes Func(4_bytes, 2_bytes, 4_bytes, 4_bytes, 4_bytes) */
  3166. enum { uppSGCompressBottleProcInfo = 0x00000EF0 };                 /* pascal 4_bytes Func(4_bytes, 2_bytes, 4_bytes) */
  3167. enum { uppSGCompressCompleteBottleProcInfo = 0x0000FEF0 };         /* pascal 4_bytes Func(4_bytes, 2_bytes, 4_bytes, 4_bytes, 4_bytes) */
  3168. enum { uppSGAddFrameBottleProcInfo = 0x0003FEF0 };                 /* pascal 4_bytes Func(4_bytes, 2_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes) */
  3169. enum { uppSGTransferFrameBottleProcInfo = 0x0000FEF0 };         /* pascal 4_bytes Func(4_bytes, 2_bytes, 4_bytes, 4_bytes, 4_bytes) */
  3170. enum { uppSGGrabCompressCompleteBottleProcInfo = 0x0000FFF0 };     /* pascal 4_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes) */
  3171. enum { uppSGDisplayCompressBottleProcInfo = 0x0003FFF0 };         /* pascal 4_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes) */
  3172. #define NewDataHCompletionProc(userRoutine)                     (DataHCompletionUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppDataHCompletionProcInfo, GetCurrentArchitecture())
  3173. #define NewVdigIntProc(userRoutine)                             (VdigIntUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppVdigIntProcInfo, GetCurrentArchitecture())
  3174. #define NewSGDataProc(userRoutine)                                 (SGDataUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSGDataProcInfo, GetCurrentArchitecture())
  3175. #define NewSGModalFilterProc(userRoutine)                         (SGModalFilterUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSGModalFilterProcInfo, GetCurrentArchitecture())
  3176. #define NewSGGrabBottleProc(userRoutine)                         (SGGrabBottleUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSGGrabBottleProcInfo, GetCurrentArchitecture())
  3177. #define NewSGGrabCompleteBottleProc(userRoutine)                 (SGGrabCompleteBottleUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSGGrabCompleteBottleProcInfo, GetCurrentArchitecture())
  3178. #define NewSGDisplayBottleProc(userRoutine)                     (SGDisplayBottleUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSGDisplayBottleProcInfo, GetCurrentArchitecture())
  3179. #define NewSGCompressBottleProc(userRoutine)                     (SGCompressBottleUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSGCompressBottleProcInfo, GetCurrentArchitecture())
  3180. #define NewSGCompressCompleteBottleProc(userRoutine)             (SGCompressCompleteBottleUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSGCompressCompleteBottleProcInfo, GetCurrentArchitecture())
  3181. #define NewSGAddFrameBottleProc(userRoutine)                     (SGAddFrameBottleUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSGAddFrameBottleProcInfo, GetCurrentArchitecture())
  3182. #define NewSGTransferFrameBottleProc(userRoutine)                 (SGTransferFrameBottleUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSGTransferFrameBottleProcInfo, GetCurrentArchitecture())
  3183. #define NewSGGrabCompressCompleteBottleProc(userRoutine)         (SGGrabCompressCompleteBottleUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSGGrabCompressCompleteBottleProcInfo, GetCurrentArchitecture())
  3184. #define NewSGDisplayCompressBottleProc(userRoutine)             (SGDisplayCompressBottleUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSGDisplayCompressBottleProcInfo, GetCurrentArchitecture())
  3185. #define CallDataHCompletionProc(userRoutine, request, refcon, err)  CALL_THREE_PARAMETER_UPP((userRoutine), uppDataHCompletionProcInfo, (request), (refcon), (err))
  3186. #define CallVdigIntProc(userRoutine, flags, refcon)             CALL_TWO_PARAMETER_UPP((userRoutine), uppVdigIntProcInfo, (flags), (refcon))
  3187. #define CallSGDataProc(userRoutine, c, p, len, offset, chRefCon, time, writeType, refCon)  CALL_EIGHT_PARAMETER_UPP((userRoutine), uppSGDataProcInfo, (c), (p), (len), (offset), (chRefCon), (time), (writeType), (refCon))
  3188. #define CallSGModalFilterProc(userRoutine, theDialog, theEvent, itemHit, refCon)  CALL_FOUR_PARAMETER_UPP((userRoutine), uppSGModalFilterProcInfo, (theDialog), (theEvent), (itemHit), (refCon))
  3189. #define CallSGGrabBottleProc(userRoutine, c, bufferNum, refCon)  CALL_THREE_PARAMETER_UPP((userRoutine), uppSGGrabBottleProcInfo, (c), (bufferNum), (refCon))
  3190. #define CallSGGrabCompleteBottleProc(userRoutine, c, bufferNum, done, refCon)  CALL_FOUR_PARAMETER_UPP((userRoutine), uppSGGrabCompleteBottleProcInfo, (c), (bufferNum), (done), (refCon))
  3191. #define CallSGDisplayBottleProc(userRoutine, c, bufferNum, mp, clipRgn, refCon)  CALL_FIVE_PARAMETER_UPP((userRoutine), uppSGDisplayBottleProcInfo, (c), (bufferNum), (mp), (clipRgn), (refCon))
  3192. #define CallSGCompressBottleProc(userRoutine, c, bufferNum, refCon)  CALL_THREE_PARAMETER_UPP((userRoutine), uppSGCompressBottleProcInfo, (c), (bufferNum), (refCon))
  3193. #define CallSGCompressCompleteBottleProc(userRoutine, c, bufferNum, done, ci, refCon)  CALL_FIVE_PARAMETER_UPP((userRoutine), uppSGCompressCompleteBottleProcInfo, (c), (bufferNum), (done), (ci), (refCon))
  3194. #define CallSGAddFrameBottleProc(userRoutine, c, bufferNum, atTime, scale, ci, refCon)  CALL_SIX_PARAMETER_UPP((userRoutine), uppSGAddFrameBottleProcInfo, (c), (bufferNum), (atTime), (scale), (ci), (refCon))
  3195. #define CallSGTransferFrameBottleProc(userRoutine, c, bufferNum, mp, clipRgn, refCon)  CALL_FIVE_PARAMETER_UPP((userRoutine), uppSGTransferFrameBottleProcInfo, (c), (bufferNum), (mp), (clipRgn), (refCon))
  3196. #define CallSGGrabCompressCompleteBottleProc(userRoutine, c, done, ci, t, refCon)  CALL_FIVE_PARAMETER_UPP((userRoutine), uppSGGrabCompressCompleteBottleProcInfo, (c), (done), (ci), (t), (refCon))
  3197. #define CallSGDisplayCompressBottleProc(userRoutine, c, dataPtr, desc, mp, clipRgn, refCon)  CALL_SIX_PARAMETER_UPP((userRoutine), uppSGDisplayCompressBottleProcInfo, (c), (dataPtr), (desc), (mp), (clipRgn), (refCon))
  3198.  
  3199. /* selectors for component calls */
  3200. enum {
  3201.     kClockGetTimeSelect                                = 0x0001,
  3202.     kClockNewCallBackSelect                            = 0x0002,
  3203.     kClockDisposeCallBackSelect                        = 0x0003,
  3204.     kClockCallMeWhenSelect                            = 0x0004,
  3205.     kClockCancelCallBackSelect                        = 0x0005,
  3206.     kClockRateChangedSelect                            = 0x0006,
  3207.     kClockTimeChangedSelect                            = 0x0007,
  3208.     kClockSetTimeBaseSelect                            = 0x0008,
  3209.     kClockStartStopChangedSelect                    = 0x0009,
  3210.     kClockGetRateSelect                                = 0x000A,
  3211.     kSCGetCompressionExtendedSelect                    = 0x0001,
  3212.     kSCPositionRectSelect                            = 0x0002,
  3213.     kSCPositionDialogSelect                            = 0x0003,
  3214.     kSCSetTestImagePictHandleSelect                    = 0x0004,
  3215.     kSCSetTestImagePictFileSelect                    = 0x0005,
  3216.     kSCSetTestImagePixMapSelect                        = 0x0006,
  3217.     kSCGetBestDeviceRectSelect                        = 0x0007,
  3218.     kSCRequestImageSettingsSelect                    = 0x000A,
  3219.     kSCCompressImageSelect                            = 0x000B,
  3220.     kSCCompressPictureSelect                        = 0x000C,
  3221.     kSCCompressPictureFileSelect                    = 0x000D,
  3222.     kSCRequestSequenceSettingsSelect                = 0x000E,
  3223.     kSCCompressSequenceBeginSelect                    = 0x000F,
  3224.     kSCCompressSequenceFrameSelect                    = 0x0010,
  3225.     kSCCompressSequenceEndSelect                    = 0x0011,
  3226.     kSCDefaultPictHandleSettingsSelect                = 0x0012,
  3227.     kSCDefaultPictFileSettingsSelect                = 0x0013,
  3228.     kSCDefaultPixMapSettingsSelect                    = 0x0014,
  3229.     kSCGetInfoSelect                                = 0x0015,
  3230.     kSCSetInfoSelect                                = 0x0016,
  3231.     kSCNewGWorldSelect                                = 0x0017,
  3232.     kSCSetCompressFlagsSelect                        = 0x0018,
  3233.     kSCGetCompressFlagsSelect                        = 0x0019,
  3234.     kSCGetSettingsAsTextSelect                        = 0x001A,
  3235.     kSCGetSettingsAsAtomContainerSelect                = 0x001B,
  3236.     kSCSetSettingsFromAtomContainerSelect            = 0x001C,
  3237.     kTweenerInitializeSelect                        = 0x0001,
  3238.     kTweenerDoTweenSelect                            = 0x0002,
  3239.     kTweenerResetSelect                                = 0x0003,
  3240.     kTCGetCurrentTimeCodeSelect                        = 0x0101,
  3241.     kTCGetTimeCodeAtTimeSelect                        = 0x0102,
  3242.     kTCTimeCodeToStringSelect                        = 0x0103,
  3243.     kTCTimeCodeToFrameNumberSelect                    = 0x0104,
  3244.     kTCFrameNumberToTimeCodeSelect                    = 0x0105,
  3245.     kTCGetSourceRefSelect                            = 0x0106,
  3246.     kTCSetSourceRefSelect                            = 0x0107,
  3247.     kTCSetTimeCodeFlagsSelect                        = 0x0108,
  3248.     kTCGetTimeCodeFlagsSelect                        = 0x0109,
  3249.     kTCSetDisplayOptionsSelect                        = 0x010A,
  3250.     kTCGetDisplayOptionsSelect                        = 0x010B,
  3251.     kMovieImportHandleSelect                        = 0x0001,
  3252.     kMovieImportFileSelect                            = 0x0002,
  3253.     kMovieImportSetSampleDurationSelect                = 0x0003,
  3254.     kMovieImportSetSampleDescriptionSelect            = 0x0004,
  3255.     kMovieImportSetMediaFileSelect                    = 0x0005,
  3256.     kMovieImportSetDimensionsSelect                    = 0x0006,
  3257.     kMovieImportSetChunkSizeSelect                    = 0x0007,
  3258.     kMovieImportSetProgressProcSelect                = 0x0008,
  3259.     kMovieImportSetAuxiliaryDataSelect                = 0x0009,
  3260.     kMovieImportSetFromScrapSelect                    = 0x000A,
  3261.     kMovieImportDoUserDialogSelect                    = 0x000B,
  3262.     kMovieImportSetDurationSelect                    = 0x000C,
  3263.     kMovieImportGetAuxiliaryDataTypeSelect            = 0x000D,
  3264.     kMovieImportValidateSelect                        = 0x000E,
  3265.     kMovieImportGetFileTypeSelect                    = 0x000F,
  3266.     kMovieImportDataRefSelect                        = 0x0010,
  3267.     kMovieImportGetSampleDescriptionSelect            = 0x0011,
  3268.     kMovieImportGetMIMETypeListSelect                = 0x0012,
  3269.     kMovieImportSetOffsetAndLimitSelect                = 0x0013,
  3270.     kMovieImportGetSettingsAsAtomContainerSelect    = 0x0014,
  3271.     kMovieImportSetSettingsFromAtomContainerSelect = 0x0015,
  3272.     kMovieExportToHandleSelect                        = 0x0080,
  3273.     kMovieExportToFileSelect                        = 0x0081,
  3274.     kMovieExportGetAuxiliaryDataSelect                = 0x0083,
  3275.     kMovieExportSetProgressProcSelect                = 0x0084,
  3276.     kMovieExportSetSampleDescriptionSelect            = 0x0085,
  3277.     kMovieExportDoUserDialogSelect                    = 0x0086,
  3278.     kMovieExportGetCreatorTypeSelect                = 0x0087,
  3279.     kMovieExportToDataRefSelect                        = 0x0088,
  3280.     kMovieExportFromProceduresToDataRefSelect        = 0x0089,
  3281.     kMovieExportAddDataSourceSelect                    = 0x008A,
  3282.     kMovieExportValidateSelect                        = 0x008B,
  3283.     kMovieExportGetSettingsAsAtomContainerSelect    = 0x008C,
  3284.     kMovieExportSetSettingsFromAtomContainerSelect = 0x008D,
  3285.     kMovieExportGetFileNameExtensionSelect            = 0x008E,
  3286.     kMovieExportGetShortFileTypeStringSelect        = 0x008F,
  3287.     kMovieExportGetSourceMediaTypeSelect            = 0x0090,
  3288.     kTextExportGetDisplayDataSelect                    = 0x0100,
  3289.     kTextExportGetTimeFractionSelect                = 0x0101,
  3290.     kTextExportSetTimeFractionSelect                = 0x0102,
  3291.     kTextExportGetSettingsSelect                    = 0x0103,
  3292.     kTextExportSetSettingsSelect                    = 0x0104,
  3293.     kMIDIImportGetSettingsSelect                    = 0x0100,
  3294.     kMIDIImportSetSettingsSelect                    = 0x0101,
  3295.     kMovieExportNewGetDataAndPropertiesProcsSelect = 0x0100,
  3296.     kMovieExportDisposeGetDataAndPropertiesProcsSelect = 0x0101,
  3297.     kGraphicsImageImportSetSequenceEnabledSelect    = 0x0100,
  3298.     kGraphicsImageImportGetSequenceEnabledSelect    = 0x0101,
  3299.     kPreviewShowDataSelect                            = 0x0001,
  3300.     kPreviewMakePreviewSelect                        = 0x0002,
  3301.     kPreviewMakePreviewReferenceSelect                = 0x0003,
  3302.     kPreviewEventSelect                                = 0x0004,
  3303.     kDataCodecDecompressSelect                        = 0x0001,
  3304.     kDataCodecGetCompressBufferSizeSelect            = 0x0002,
  3305.     kDataCodecCompressSelect                        = 0x0003,
  3306.     kDataCodecBeginInterruptSafeSelect                = 0x0004,
  3307.     kDataCodecEndInterruptSafeSelect                = 0x0005,
  3308.     kDataCodecDecompressPartialSelect                = 0x0006,
  3309.     kDataCodecCompressPartialSelect                    = 0x0007,
  3310.     kDataHGetDataSelect                                = 0x0002,
  3311.     kDataHPutDataSelect                                = 0x0003,
  3312.     kDataHFlushDataSelect                            = 0x0004,
  3313.     kDataHOpenForWriteSelect                        = 0x0005,
  3314.     kDataHCloseForWriteSelect                        = 0x0006,
  3315.     kDataHOpenForReadSelect                            = 0x0008,
  3316.     kDataHCloseForReadSelect                        = 0x0009,
  3317.     kDataHSetDataRefSelect                            = 0x000A,
  3318.     kDataHGetDataRefSelect                            = 0x000B,
  3319.     kDataHCompareDataRefSelect                        = 0x000C,
  3320.     kDataHTaskSelect                                = 0x000D,
  3321.     kDataHScheduleDataSelect                        = 0x000E,
  3322.     kDataHFinishDataSelect                            = 0x000F,
  3323.     kDataHFlushCacheSelect                            = 0x0010,
  3324.     kDataHResolveDataRefSelect                        = 0x0011,
  3325.     kDataHGetFileSizeSelect                            = 0x0012,
  3326.     kDataHCanUseDataRefSelect                        = 0x0013,
  3327.     kDataHGetVolumeListSelect                        = 0x0014,
  3328.     kDataHWriteSelect                                = 0x0015,
  3329.     kDataHPreextendSelect                            = 0x0016,
  3330.     kDataHSetFileSizeSelect                            = 0x0017,
  3331.     kDataHGetFreeSpaceSelect                        = 0x0018,
  3332.     kDataHCreateFileSelect                            = 0x0019,
  3333.     kDataHGetPreferredBlockSizeSelect                = 0x001A,
  3334.     kDataHGetDeviceIndexSelect                        = 0x001B,
  3335.     kDataHIsStreamingDataHandlerSelect                = 0x001C,
  3336.     kDataHGetDataInBufferSelect                        = 0x001D,
  3337.     kDataHGetScheduleAheadTimeSelect                = 0x001E,
  3338.     kDataHSetCacheSizeLimitSelect                    = 0x001F,
  3339.     kDataHGetCacheSizeLimitSelect                    = 0x0020,
  3340.     kDataHGetMovieSelect                            = 0x0021,
  3341.     kDataHAddMovieSelect                            = 0x0022,
  3342.     kDataHUpdateMovieSelect                            = 0x0023,
  3343.     kDataHDoesBufferSelect                            = 0x0024,
  3344.     kDataHGetFileNameSelect                            = 0x0025,
  3345.     kDataHGetAvailableFileSizeSelect                = 0x0026,
  3346.     kDataHGetMacOSFileTypeSelect                    = 0x0027,
  3347.     kDataHGetMIMETypeSelect                            = 0x0028,
  3348.     kDataHSetDataRefWithAnchorSelect                = 0x0029,
  3349.     kDataHGetDataRefWithAnchorSelect                = 0x002A,
  3350.     kDataHSetMacOSFileTypeSelect                    = 0x002B,
  3351.     kDataHSetTimeBaseSelect                            = 0x002C,
  3352.     kDataHPlaybackHintsSelect                        = 0x0103,
  3353.     kVDGetMaxSrcRectSelect                            = 0x0001,
  3354.     kVDGetActiveSrcRectSelect                        = 0x0002,
  3355.     kVDSetDigitizerRectSelect                        = 0x0003,
  3356.     kVDGetDigitizerRectSelect                        = 0x0004,
  3357.     kVDGetVBlankRectSelect                            = 0x0005,
  3358.     kVDGetMaskPixMapSelect                            = 0x0006,
  3359.     kVDGetPlayThruDestinationSelect                    = 0x0008,
  3360.     kVDUseThisCLUTSelect                            = 0x0009,
  3361.     kVDSetInputGammaValueSelect                        = 0x000A,
  3362.     kVDGetInputGammaValueSelect                        = 0x000B,
  3363.     kVDSetBrightnessSelect                            = 0x000C,
  3364.     kVDGetBrightnessSelect                            = 0x000D,
  3365.     kVDSetContrastSelect                            = 0x000E,
  3366.     kVDSetHueSelect                                    = 0x000F,
  3367.     kVDSetSharpnessSelect                            = 0x0010,
  3368.     kVDSetSaturationSelect                            = 0x0011,
  3369.     kVDGetContrastSelect                            = 0x0012,
  3370.     kVDGetHueSelect                                    = 0x0013,
  3371.     kVDGetSharpnessSelect                            = 0x0014,
  3372.     kVDGetSaturationSelect                            = 0x0015,
  3373.     kVDGrabOneFrameSelect                            = 0x0016,
  3374.     kVDGetMaxAuxBufferSelect                        = 0x0017,
  3375.     kVDGetDigitizerInfoSelect                        = 0x0019,
  3376.     kVDGetCurrentFlagsSelect                        = 0x001A,
  3377.     kVDSetKeyColorSelect                            = 0x001B,
  3378.     kVDGetKeyColorSelect                            = 0x001C,
  3379.     kVDAddKeyColorSelect                            = 0x001D,
  3380.     kVDGetNextKeyColorSelect                        = 0x001E,
  3381.     kVDSetKeyColorRangeSelect                        = 0x001F,
  3382.     kVDGetKeyColorRangeSelect                        = 0x0020,
  3383.     kVDSetDigitizerUserInterruptSelect                = 0x0021,
  3384.     kVDSetInputColorSpaceModeSelect                    = 0x0022,
  3385.     kVDGetInputColorSpaceModeSelect                    = 0x0023,
  3386.     kVDSetClipStateSelect                            = 0x0024,
  3387.     kVDGetClipStateSelect                            = 0x0025,
  3388.     kVDSetClipRgnSelect                                = 0x0026,
  3389.     kVDClearClipRgnSelect                            = 0x0027,
  3390.     kVDGetCLUTInUseSelect                            = 0x0028,
  3391.     kVDSetPLLFilterTypeSelect                        = 0x0029,
  3392.     kVDGetPLLFilterTypeSelect                        = 0x002A,
  3393.     kVDGetMaskandValueSelect                        = 0x002B,
  3394.     kVDSetMasterBlendLevelSelect                    = 0x002C,
  3395.     kVDSetPlayThruDestinationSelect                    = 0x002D,
  3396.     kVDSetPlayThruOnOffSelect                        = 0x002E,
  3397.     kVDSetFieldPreferenceSelect                        = 0x002F,
  3398.     kVDGetFieldPreferenceSelect                        = 0x0030,
  3399.     kVDPreflightDestinationSelect                    = 0x0032,
  3400.     kVDPreflightGlobalRectSelect                    = 0x0033,
  3401.     kVDSetPlayThruGlobalRectSelect                    = 0x0034,
  3402.     kVDSetInputGammaRecordSelect                    = 0x0035,
  3403.     kVDGetInputGammaRecordSelect                    = 0x0036,
  3404.     kVDSetBlackLevelValueSelect                        = 0x0037,
  3405.     kVDGetBlackLevelValueSelect                        = 0x0038,
  3406.     kVDSetWhiteLevelValueSelect                        = 0x0039,
  3407.     kVDGetWhiteLevelValueSelect                        = 0x003A,
  3408.     kVDGetVideoDefaultsSelect                        = 0x003B,
  3409.     kVDGetNumberOfInputsSelect                        = 0x003C,
  3410.     kVDGetInputFormatSelect                            = 0x003D,
  3411.     kVDSetInputSelect                                = 0x003E,
  3412.     kVDGetInputSelect                                = 0x003F,
  3413.     kVDSetInputStandardSelect                        = 0x0040,
  3414.     kVDSetupBuffersSelect                            = 0x0041,
  3415.     kVDGrabOneFrameAsyncSelect                        = 0x0042,
  3416.     kVDDoneSelect                                    = 0x0043,
  3417.     kVDSetCompressionSelect                            = 0x0044,
  3418.     kVDCompressOneFrameAsyncSelect                    = 0x0045,
  3419.     kVDCompressDoneSelect                            = 0x0046,
  3420.     kVDReleaseCompressBufferSelect                    = 0x0047,
  3421.     kVDGetImageDescriptionSelect                    = 0x0048,
  3422.     kVDResetCompressSequenceSelect                    = 0x0049,
  3423.     kVDSetCompressionOnOffSelect                    = 0x004A,
  3424.     kVDGetCompressionTypesSelect                    = 0x004B,
  3425.     kVDSetTimeBaseSelect                            = 0x004C,
  3426.     kVDSetFrameRateSelect                            = 0x004D,
  3427.     kVDGetDataRateSelect                            = 0x004E,
  3428.     kVDGetSoundInputDriverSelect                    = 0x004F,
  3429.     kVDGetDMADepthsSelect                            = 0x0050,
  3430.     kVDGetPreferredTimeScaleSelect                    = 0x0051,
  3431.     kVDReleaseAsyncBuffersSelect                    = 0x0052,
  3432.     kVDSetDataRateSelect                            = 0x0054,
  3433.     kVDGetTimeCodeSelect                            = 0x0055,
  3434.     kVDUseSafeBuffersSelect                            = 0x0056,
  3435.     kVDGetSoundInputSourceSelect                    = 0x0057,
  3436.     kVDGetCompressionTimeSelect                        = 0x0058,
  3437.     kVDSetPreferredPacketSizeSelect                    = 0x0059,
  3438.     kVDSetPreferredImageDimensionsSelect            = 0x005A,
  3439.     kVDGetPreferredImageDimensionsSelect            = 0x005B,
  3440.     kVDGetInputNameSelect                            = 0x005C,
  3441.     kVDSetDestinationPortSelect                        = 0x005D,
  3442.     kSGInitializeSelect                                = 0x0001,
  3443.     kSGSetDataOutputSelect                            = 0x0002,
  3444.     kSGGetDataOutputSelect                            = 0x0003,
  3445.     kSGSetGWorldSelect                                = 0x0004,
  3446.     kSGGetGWorldSelect                                = 0x0005,
  3447.     kSGNewChannelSelect                                = 0x0006,
  3448.     kSGDisposeChannelSelect                            = 0x0007,
  3449.     kSGStartPreviewSelect                            = 0x0010,
  3450.     kSGStartRecordSelect                            = 0x0011,
  3451.     kSGIdleSelect                                    = 0x0012,
  3452.     kSGStopSelect                                    = 0x0013,
  3453.     kSGPauseSelect                                    = 0x0014,
  3454.     kSGPrepareSelect                                = 0x0015,
  3455.     kSGReleaseSelect                                = 0x0016,
  3456.     kSGGetMovieSelect                                = 0x0017,
  3457.     kSGSetMaximumRecordTimeSelect                    = 0x0018,
  3458.     kSGGetMaximumRecordTimeSelect                    = 0x0019,
  3459.     kSGGetStorageSpaceRemainingSelect                = 0x001A,
  3460.     kSGGetTimeRemainingSelect                        = 0x001B,
  3461.     kSGGrabPictSelect                                = 0x001C,
  3462.     kSGGetLastMovieResIDSelect                        = 0x001D,
  3463.     kSGSetFlagsSelect                                = 0x001E,
  3464.     kSGGetFlagsSelect                                = 0x001F,
  3465.     kSGSetDataProcSelect                            = 0x0020,
  3466.     kSGNewChannelFromComponentSelect                = 0x0021,
  3467.     kSGDisposeDeviceListSelect                        = 0x0022,
  3468.     kSGAppendDeviceListToMenuSelect                    = 0x0023,
  3469.     kSGSetSettingsSelect                            = 0x0024,
  3470.     kSGGetSettingsSelect                            = 0x0025,
  3471.     kSGGetIndChannelSelect                            = 0x0026,
  3472.     kSGUpdateSelect                                    = 0x0027,
  3473.     kSGGetPauseSelect                                = 0x0028,
  3474.     kSGSettingsDialogSelect                            = 0x0029,
  3475.     kSGGetAlignmentProcSelect                        = 0x002A,
  3476.     kSGSetChannelSettingsSelect                        = 0x002B,
  3477.     kSGGetChannelSettingsSelect                        = 0x002C,
  3478.     kSGGetModeSelect                                = 0x002D,
  3479.     kSGSetDataRefSelect                                = 0x002E,
  3480.     kSGGetDataRefSelect                                = 0x002F,
  3481.     kSGNewOutputSelect                                = 0x0030,
  3482.     kSGDisposeOutputSelect                            = 0x0031,
  3483.     kSGSetOutputFlagsSelect                            = 0x0032,
  3484.     kSGSetChannelOutputSelect                        = 0x0033,
  3485.     kSGGetDataOutputStorageSpaceRemainingSelect        = 0x0034,
  3486.     kSGHandleUpdateEventSelect                        = 0x0035,
  3487.     kSGSetOutputNextOutputSelect                    = 0x0036,
  3488.     kSGGetOutputNextOutputSelect                    = 0x0037,
  3489.     kSGSetOutputMaximumOffsetSelect                    = 0x0038,
  3490.     kSGGetOutputMaximumOffsetSelect                    = 0x0039,
  3491.     kSGGetOutputDataReferenceSelect                    = 0x003A,
  3492.     kSGWriteExtendedMovieDataSelect                    = 0x003B,
  3493.     kSGWriteMovieDataSelect                            = 0x0100,
  3494.     kSGAddFrameReferenceSelect                        = 0x0101,
  3495.     kSGGetNextFrameReferenceSelect                    = 0x0102,
  3496.     kSGGetTimeBaseSelect                            = 0x0103,
  3497.     kSGSortDeviceListSelect                            = 0x0104,
  3498.     kSGAddMovieDataSelect                            = 0x0105,
  3499.     kSGChangedSourceSelect                            = 0x0106,
  3500.     kSGAddExtendedFrameReferenceSelect                = 0x0107,
  3501.     kSGGetNextExtendedFrameReferenceSelect            = 0x0108,
  3502.     kSGAddExtendedMovieDataSelect                    = 0x0109,
  3503.     kSGAddOutputDataRefToMediaSelect                = 0x010A,
  3504.     kSGSetChannelUsageSelect                        = 0x0080,
  3505.     kSGGetChannelUsageSelect                        = 0x0081,
  3506.     kSGSetChannelBoundsSelect                        = 0x0082,
  3507.     kSGGetChannelBoundsSelect                        = 0x0083,
  3508.     kSGSetChannelVolumeSelect                        = 0x0084,
  3509.     kSGGetChannelVolumeSelect                        = 0x0085,
  3510.     kSGGetChannelInfoSelect                            = 0x0086,
  3511.     kSGSetChannelPlayFlagsSelect                    = 0x0087,
  3512.     kSGGetChannelPlayFlagsSelect                    = 0x0088,
  3513.     kSGSetChannelMaxFramesSelect                    = 0x0089,
  3514.     kSGGetChannelMaxFramesSelect                    = 0x008A,
  3515.     kSGSetChannelRefConSelect                        = 0x008B,
  3516.     kSGSetChannelClipSelect                            = 0x008C,
  3517.     kSGGetChannelClipSelect                            = 0x008D,
  3518.     kSGGetChannelSampleDescriptionSelect            = 0x008E,
  3519.     kSGGetChannelDeviceListSelect                    = 0x008F,
  3520.     kSGSetChannelDeviceSelect                        = 0x0090,
  3521.     kSGSetChannelMatrixSelect                        = 0x0091,
  3522.     kSGGetChannelMatrixSelect                        = 0x0092,
  3523.     kSGGetChannelTimeScaleSelect                    = 0x0093,
  3524.     kSGChannelPutPictureSelect                        = 0x0094,
  3525.     kSGChannelSetRequestedDataRateSelect            = 0x0095,
  3526.     kSGChannelGetRequestedDataRateSelect            = 0x0096,
  3527.     kSGChannelSetDataSourceNameSelect                = 0x0097,
  3528.     kSGChannelGetDataSourceNameSelect                = 0x0098,
  3529.     kSGInitChannelSelect                            = 0x0180,
  3530.     kSGWriteSamplesSelect                            = 0x0181,
  3531.     kSGGetDataRateSelect                            = 0x0182,
  3532.     kSGAlignChannelRectSelect                        = 0x0183,
  3533.     kSGPanelGetDitlSelect                            = 0x0200,
  3534.     kSGPanelGetTitleSelect                            = 0x0201,
  3535.     kSGPanelCanRunSelect                            = 0x0202,
  3536.     kSGPanelInstallSelect                            = 0x0203,
  3537.     kSGPanelEventSelect                                = 0x0204,
  3538.     kSGPanelItemSelect                                = 0x0205,
  3539.     kSGPanelRemoveSelect                            = 0x0206,
  3540.     kSGPanelSetGrabberSelect                        = 0x0207,
  3541.     kSGPanelSetResFileSelect                        = 0x0208,
  3542.     kSGPanelGetSettingsSelect                        = 0x0209,
  3543.     kSGPanelSetSettingsSelect                        = 0x020A,
  3544.     kSGPanelValidateInputSelect                        = 0x020B,
  3545.     kSGPanelSetEventFilterSelect                    = 0x020C,
  3546.     kSGGetSrcVideoBoundsSelect                        = 0x0100,
  3547.     kSGSetVideoRectSelect                            = 0x0101,
  3548.     kSGGetVideoRectSelect                            = 0x0102,
  3549.     kSGGetVideoCompressorTypeSelect                    = 0x0103,
  3550.     kSGSetVideoCompressorTypeSelect                    = 0x0104,
  3551.     kSGSetVideoCompressorSelect                        = 0x0105,
  3552.     kSGGetVideoCompressorSelect                        = 0x0106,
  3553.     kSGGetVideoDigitizerComponentSelect                = 0x0107,
  3554.     kSGSetVideoDigitizerComponentSelect                = 0x0108,
  3555.     kSGVideoDigitizerChangedSelect                    = 0x0109,
  3556.     kSGSetVideoBottlenecksSelect                    = 0x010A,
  3557.     kSGGetVideoBottlenecksSelect                    = 0x010B,
  3558.     kSGGrabFrameSelect                                = 0x010C,
  3559.     kSGGrabFrameCompleteSelect                        = 0x010D,
  3560.     kSGDisplayFrameSelect                            = 0x010E,
  3561.     kSGCompressFrameSelect                            = 0x010F,
  3562.     kSGCompressFrameCompleteSelect                    = 0x0110,
  3563.     kSGAddFrameSelect                                = 0x0111,
  3564.     kSGTransferFrameForCompressSelect                = 0x0112,
  3565.     kSGSetCompressBufferSelect                        = 0x0113,
  3566.     kSGGetCompressBufferSelect                        = 0x0114,
  3567.     kSGGetBufferInfoSelect                            = 0x0115,
  3568.     kSGSetUseScreenBufferSelect                        = 0x0116,
  3569.     kSGGetUseScreenBufferSelect                        = 0x0117,
  3570.     kSGGrabCompressCompleteSelect                    = 0x0118,
  3571.     kSGDisplayCompressSelect                        = 0x0119,
  3572.     kSGSetFrameRateSelect                            = 0x011A,
  3573.     kSGGetFrameRateSelect                            = 0x011B,
  3574.     kSGSetPreferredPacketSizeSelect                    = 0x0121,
  3575.     kSGGetPreferredPacketSizeSelect                    = 0x0122,
  3576.     kSGSetUserVideoCompressorListSelect                = 0x0123,
  3577.     kSGGetUserVideoCompressorListSelect                = 0x0124,
  3578.     kSGSetSoundInputDriverSelect                    = 0x0100,
  3579.     kSGGetSoundInputDriverSelect                    = 0x0101,
  3580.     kSGSoundInputDriverChangedSelect                = 0x0102,
  3581.     kSGSetSoundRecordChunkSizeSelect                = 0x0103,
  3582.     kSGGetSoundRecordChunkSizeSelect                = 0x0104,
  3583.     kSGSetSoundInputRateSelect                        = 0x0105,
  3584.     kSGGetSoundInputRateSelect                        = 0x0106,
  3585.     kSGSetSoundInputParametersSelect                = 0x0107,
  3586.     kSGGetSoundInputParametersSelect                = 0x0108,
  3587.     kSGSetAdditionalSoundRatesSelect                = 0x0109,
  3588.     kSGGetAdditionalSoundRatesSelect                = 0x010A,
  3589.     kSGSetFontNameSelect                            = 0x0100,
  3590.     kSGSetFontSizeSelect                            = 0x0101,
  3591.     kSGSetTextForeColorSelect                        = 0x0102,
  3592.     kSGSetTextBackColorSelect                        = 0x0103,
  3593.     kSGSetJustificationSelect                        = 0x0104,
  3594.     kSGGetTextReturnToSpaceValueSelect                = 0x0105,
  3595.     kSGSetTextReturnToSpaceValueSelect                = 0x0106,
  3596.     kSGGetInstrumentSelect                            = 0x0100,
  3597.     kSGSetInstrumentSelect                            = 0x0101,
  3598.     kQTVideoOutputGetDisplayModeListSelect            = 0x0001,
  3599.     kQTVideoOutputGetCurrentClientNameSelect        = 0x0002,
  3600.     kQTVideoOutputSetClientNameSelect                = 0x0003,
  3601.     kQTVideoOutputGetClientNameSelect                = 0x0004,
  3602.     kQTVideoOutputBeginSelect                        = 0x0005,
  3603.     kQTVideoOutputEndSelect                            = 0x0006,
  3604.     kQTVideoOutputSetDisplayModeSelect                = 0x0007,
  3605.     kQTVideoOutputGetDisplayModeSelect                = 0x0008,
  3606.     kQTVideoOutputCustomConfigureDisplaySelect        = 0x0009,
  3607.     kQTVideoOutputSaveStateSelect                    = 0x000A,
  3608.     kQTVideoOutputRestoreStateSelect                = 0x000B,
  3609.     kQTVideoOutputGetGWorldSelect                    = 0x000C,
  3610.     kQTVideoOutputGetGWorldParametersSelect            = 0x000D,
  3611.     kQTVideoOutputGetIndSoundOutputSelect            = 0x000E,
  3612.     kQTVideoOutputGetClockSelect                    = 0x000F,
  3613.     kQTVideoOutputSetEchoPortSelect                    = 0x0010
  3614. };
  3615.  
  3616.  
  3617. #if PRAGMA_STRUCT_ALIGN
  3618.     #pragma options align=reset
  3619. #elif PRAGMA_STRUCT_PACKPUSH
  3620.     #pragma pack(pop)
  3621. #elif PRAGMA_STRUCT_PACK
  3622.     #pragma pack()
  3623. #endif
  3624.  
  3625. #ifdef PRAGMA_IMPORT_OFF
  3626. #pragma import off
  3627. #elif PRAGMA_IMPORT
  3628. #pragma import reset
  3629. #endif
  3630.  
  3631. #ifdef __cplusplus
  3632. }
  3633. #endif
  3634.  
  3635. #endif /* __QUICKTIMECOMPONENTS__ */
  3636.  
  3637.